Monthly Archives: May 2012

Phil 5.2.12

8:00 – 4:30 FP

  • And somehow, here we are back at communication libraries. At least I have an existence proof that it *can* work. The serial console is perfectly happy. Which means the Arduino code is happy. It looks like I get to blame Windows.
  • Serial looks more solid today. Need to integrate the classes so that ArduinoSerial does a straight passthrough to SerialPort
  • Code is fixed and in Subversion. Back to Monday’s task of integrating with the sim.
  • Building the outgoing JSON object. It turns out that trying to set an int value using cJSON->valueint doesn’t work. Use cJSON->valuedouble. If it’s an int, the printing will be correct.
    • SoundObject is up and running
    • PressureObject is created and waiting to be populated.
    • Tom is building a connector so that I can interact with the pressure sensors tomorrow.

Phil 5.1.12

8:00 – 5:00 FP

  • Generalize JSON parsing in the sketch
  • Integrate serial communication into the demo. Fail gracefully into a GUI-only system
    • Add sound?
    • Adding DataObjects for sound type & volume (inputs) and pressure (outputs). Done
    • And now the serial code is choking again. It seems to be related to the size of the stream that’s sent up. Looking at that after lunch. First test will be to read on the pc without writing, while having the arduino write at faster and faster rates.
    • I got things to work better, but not as well as the serial console. Found a serial library on google code (http://code.google.com/p/mbsutil/). Going to try to use a few pieces from that ad see if it will work better. Got it to compile. Tomorrow, I’ll try to integrate it…

Phil 4.30.12

8:00 – 4:30 FP

  • Seminar. Last one for the year!
  • SF86 follow up
  • Updated resume
  • Talked to Tom a bit about his preamp problems, and worked out a way to proceed.
  • Looked at the Arduino, but did nothing with it. Back to a normal schedule tomorrow.