top of page
  • Writer's pictureAllison Chan

Week 2 - Serial Communication

A serial communication has been established between Raspberry Pi and Arduino. The set of commands are:


G1 X Y - move to x mm y mm
M0 T D - rotate D degrees (+ve or -ve) for T motor
M1 B - Docking sequence (B - boolean: 1: Enter; 0: Leave)
M2 - Return current location “[X] [Y]”
M3 [X/Y]- Home (Bottom left corner) X or Y axis, home both if not provided
M4 N W - Dispense W grams from N container
M5 C0 - Set conversion factor (C0/g)
M6 C1 - Set conversion factor (C1 steps/mm)
M7 C2 - Set conversion factor (C2 degrees/step)
M8 D R - set docking sequence vertical movement (mm) and degree - docking sequence is essentially move forward D mm and rotate R degrees

The serial communication on the Arduino side is tested with the built in tool "Serial Monitor" from the Arduino IDE.



2 views0 comments

Recent Posts

See All
Post: Blog2_Post
bottom of page