I got my first embed yesterday and I am already enjoying its simplicity of programming and great breadboard formfactor. I did a few light shows on the four LEDs and setup a debug terminal through the USB serial connection. All very cool, and easy stuff - a great out-of-the-box experience.
Then I went to my parts bin and found an LM34 temperature sensor and after a brief wiring snafu was able to setup a temperature data logger in no time. (Breadboard, mbed, LM34, three jumpers) I forced the clock settings for my start time, which was also quite easy (after I read the correct time structure settings).
Just to test I scaled the analog input with just a multiplier hack:
AnalogIn LM34(p20);
temp = LM34.read()*300;
I am sure this number is close, but what is the proper way to scale the input for this device? I am running it directly off the 5V USB (VU), with the output to p20.
So far I love this little embed guy! Thanks for including the handy pin reference cards. I am looking forward to playing with my SPI, I2C stuff today. And my SoundGin and SpeakJet chips are waiting for some use. I will certainly be contributing to the community as my knowledge increases. I guess I can still use all my old PIC stuff for remote sensors. :-)
-Johnnie
I got my first embed yesterday and I am already enjoying its simplicity of programming and great breadboard formfactor. I did a few light shows on the four LEDs and setup a debug terminal through the USB serial connection. All very cool, and easy stuff - a great out-of-the-box experience.
Then I went to my parts bin and found an LM34 temperature sensor and after a brief wiring snafu was able to setup a temperature data logger in no time. (Breadboard, mbed, LM34, three jumpers) I forced the clock settings for my start time, which was also quite easy (after I read the correct time structure settings).
Just to test I scaled the analog input with just a multiplier hack:
AnalogIn LM34(p20);
temp = LM34.read()*300;
I am sure this number is close, but what is the proper way to scale the input for this device? I am running it directly off the 5V USB (VU), with the output to p20.
So far I love this little embed guy! Thanks for including the handy pin reference cards. I am looking forward to playing with my SPI, I2C stuff today. And my SoundGin and SpeakJet chips are waiting for some use. I will certainly be contributing to the community as my knowledge increases. I guess I can still use all my old PIC stuff for remote sensors. :-)
-Johnnie