Here we can find Arduino codes to control the XY axes (sample translation) of the HomeScope microscope.
Juan Keymer 1170513286 Added all codes to control XY with or without LCD and GUI to GPIOs | 2 månader sedan | |
---|---|---|
Arduino_XY.ino | 2 månader sedan | |
Arduino_XY_no_GUI.ino | 2 månader sedan | |
Arduino_XY_no_GUI_no_LCD.ino | 2 månader sedan | |
README.md | 2 månader sedan |
In HomeScope the Arduinos (Z and also XY) work as a 2-State automata which has two states: (i) listening
, (ii) actuating
.
The most basic version of the code to control XY only listens for JoyStick commands from the user. These can be four possible: move x forward (X:++), move x backwards (X:--), move y fowards (Y:++), or move y backwards (Y:--)
The code is:
Arduino_XY_no_GUI_no_LCD.ino
The next step in complexity is to add a LCD display notifying the angle (0 to 90 degrees) coordinates of the servo motors so we have some orientation about where are we.
Arduino_XY_no_GUI.ino
Using the Arduino GPIOs (1,2) and (3,4) we can read messages from the Raspberry Pi. If the pins are grounded no message is conveyed (00). To move one way or the other we read (10) or (01) respectively. Ths final complete code then is:
Arduino_XY.ino
To understand the codes listed here visit Arduino XY hacks repository.