sending variables over serial


hi there, bought arduino , managed make led blink , receive data mac i'm on roll need advice. i'm not grasping serial communication process , wonder if has pointers.

i'd able send arduino variables i'm not sure whats best way. crazy send string "foo1024" , have arduino use first 3 letters test variable assign value , assign numbers after first letter value. predict crazy way don't know how otherwise. have advice on how this. want drive 3 outputs arduino, motor , lights etc , want send variables arduino position of motor , brightness of lights don't know how.

any ideas or pointers on read.

thanks arduino:)

you have right idea, isn't complete. can't send name of variable arduino store data in. can send s1:180 position servo 1 180, but, arduino doing work, understanding s means servo, 1 means one, , 180 new position.

when sending data arduino, best use start , end of packet markers, arduino knows when has received complete packet.

search forum "started && ended" example posted on how receive , use string start , end markers.


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > sending variables over serial


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums