cclrobotics / lhr-testing

Repo for keeping code for testing different pieces of the system.
0 stars 0 forks source link

Test the relays #7

Closed griswaldbrooks closed 8 years ago

griswaldbrooks commented 8 years ago

From @griswaldbrooks on July 17, 2016 0:3

Load a basic sketch onto the Arduino and switch the relays.

Copied from original issue: cclrobotics/lhr-docs#5

tamarum commented 8 years ago

Tested shaker relay

Made sure the shaker power adapter was wired to a relay circuit, plugged into an outlet, and connected to the shaker. I connected the power and ground pins from the relay circuit to VIN and ground pins on the Arduino, respectively. I connected the signal receiving pin on the relay with a VIN pin on the Arduino and powered the Arduino. This essentially sent a "HIGH" signal to the relay which turned on the shaker. I then connected this signal wire to the Arduino pin designated for the shaker (according to the Arduino code @griswaldbrooks pulled off of the raspberry pi which can be found here). We were able to then open a serial terminal through the Arduino IDE and power on/off the shaker. The other relays should work in a similar manner, and all of the relays will be connecting to the Arduino through a shield.

Started a new issue to create a general diagram of the relays and Arduino shield work here: cclrobotics/lhr-docs/15

griswaldbrooks commented 8 years ago

Copied the controller firmware to the testing repo and modified it to take manual commands for the incubator pins. Tested all the relays without AC connected to them and they all switched on and off as expected. The ports tested are: D2, D3, D4, D5, D6, D7, A1, A2 Which is all of the known relays. They were tested using the arduino and the interface shield.