[C.CC USERS] Serial setup on Plumb

Jay Clarke jay_woodmizer at yahoo.com
Tue Oct 29 02:42:55 GMT 2013


Hi,

I'm new to occam, Plumb, and programming on the Arduino in general, but somewhat familiar with C++. I've managed to write a program that will blink LEDs without using the blink() process so I could use adc() to read a light sensor and modify the blink delay time.

With that working, I'm trying to get a hall-effect sensor set up to read motor RPM to drive two motors at the same speed. Before this, I need to see the general wave form and set some hysteresis values for the program.

To do this, I need to send the sensor values back to my computer (and manually throw them in excel, I guess), but I am quite clueless on this. I tried using serial.setup(TX0,baud) with baud values of 300, 500, and 9600 just going by what I read. However, Plumb would always give an error saying that serial.setup is not defined/declared.


I'll include my test program so you'll know if I have any idea what I'm doing.

I've been having a lot of fun writing programs using Plumb (only 4 days in), but I have no idea what I'm currently doing wrong. I tried James Brown's program from a January email and had the same error.

As an aside, I've made plenty of mistakes by now, but the worst is putting spaces in file names, which completely messes up the compiler.

Any advice is appreciated. Thank you.
-Jay Clarke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.concurrency.cc/pipermail/users/attachments/20131028/6f41f2ff/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: serial_write_counter.occ
Type: application/octet-stream
Size: 226 bytes
Desc: not available
URL: <http://lists.concurrency.cc/pipermail/users/attachments/20131028/6f41f2ff/attachment.obj>


More information about the users mailing list