Thursday, March 3, 2016

Up to my eyes in projects now.

Started with that darn Arduino! Tore apart my old circuit (the LEDs) and wired up that DHT22 sensor I got from China. After doing that, I printed out the sketch (called a sketch but it's really a program written in the programming language called c) written for this particular experiment. I couldn't find a way to transfer the program from my desktop unit to the Arduino development environment for uploading to the unit itself. That's why I printed out. Despite a great network and a bunch of components, I had to print the program off one machine to type it into my laptop!

Did that and managed to debug the new program. Uploaded it to the Arduino and watched it work. The "sketch" polls the sensor and reads both humidity and temperature. It then is supposed to print out each reading (along with word labels of "humidity" and "temperature"); do another reading, print results, and so on. Problem is, though the sketch is identical to the one from the course, it prints out the results in one giant, concatenated line. The video of this process in the course itself shows the info being printed as a column, not a line.

So the program has something missing in the printing portion of the program. Retrieved a couple of reference texts on c programming and read up on printing functions. I think I may know what's missing and will test it tomorrow. Meanwhile, however, I realized it would help to have a c programming environment of my own on my machines so I then searched for the best way to do that on a Mac.

Spent some time downloading a free application called Xcode from the Application Store. So now I will be doodling with c in addition to my Algebra course and the Arduino course itself.

No comments:

Post a Comment