• Content Count

  • Joined

  • Last visited

  1. SC3

    Analog shield DAC range

    I've been using the 4 DACs on the Analog Shield. They are bipolar. An unsigned int in the range of 0-65535 (16 bits) converts to an output voltage between -5V and 5V.
  2. Thank you very much for the quick reply, and also for modifying the .cpp and .h files for the analogShield library. I have ordered a Wi-fire board and look forward to trying it in a few days. If it works well for my project, I may be ordering a few more for students to use when they build their projects for a summer course.
  3. I've been using the Analog Shield with the uC32 board, but I was just reading the specifications on the Chipkit Wifire and would like to try using that board instead because of the much larger static RAM (512kB vs 32kB for the uC32). I read the reference manual for the Chipkit Wifire, and it appears to me that the Analog Shield should work from the hardware point of view. I tried compiling some code using the Analog Shield for the Wifire with Arduino software and chipkit-core, but the Analog Shield library gives an error "Incorrect processor type" because the board doesn't have a PIC32MX processor. If I modify the analogShield.h header file to add "#if defined (__PIC32MZ__)" and put in the same includes as for the PIC32MX, is that likely to work? Or will there be other problems? Will the faster clock speed of the Wifire cause a problem with the Analog Shield? I'm also interested in the DSP functions of the PIC32MZ. I found a library for MPLAB Harmony. Is it possible to port it or modify it to work with MPIDE or Arduino with Chipkit-core?
  4. I have 4 uc32 boards with AnalogShields. I have been programming one set using mpide under Windows 7 for several weeks. Yesterday I was in a classroom with a group of students busily working on a project with Linux (Ubuntu 64 bit) laptops and discovered that the mpide under Linux will not upload a compiled file, such as the "blink" example, to the uc32 boards. The error message is "avrdude: stk500v2_ReceiveMessage(): timeout". I found a couple of threads on the chipKit forum reporting this error but no solution, other than using a Windows machine! The students have only next week to work on this final project for their summer course, for which I had bought these boards. Programs upload to the other uc32 boards just fine under Windows. The students' linux machines communicate with Arduinos using the Arduino IDE without any problem. I have tried 2 versions of mpide (20140821 and 20150204-test) and also uecide-0.8.7z36. All give the same error when trying to upload a program to the uc32. Under uecide, I also tried the alternative method of uploading to the board via pic32prog (instead of AVRDude), and earlier got the message "Board not found" but now am getting "Program flash failed. Resetting board. Upload failed." Is this a known problem with the mpide, linux, and uc32 boards? Do you have a solution? I suppose that I could put Windows onto a few of the students' laptops, or I could have them use Arduinos with the Analog Shield boards, but the extra memory and speed of the uc32 is very desirable for this application.