This makes use of Two Way Serial Communication with a Master Arduino The two sketches presented below can be downloaded from here: TwoWaySerialTest_Masterv3_and_Slavev3.zip Sketch for the Master – Arduino Mega Circuit Diagramįor a higher resolution image click here. A 5V regulated supply and large capacitor was used to provide tidy power to the 5V rail that feeds the servo, the LEDs, and the Seeeduino Stalker. The 5V supply from the Arduino Mega’s 5V line is not enough and so the servo creates a lot of problems with noise and possibly voltage droop that prevent the happy operation of the Seeeduino Stalker. ![]() For this arrangement to work properly the 5V supply to the servo and to supply the Seeeduino Stalker MUST be from another source. ![]() The slave is a Seeeduino Stalker operating a servo and an array of LEDs to indicate the messages received and do something that is vaguely related to what it would be doing in the ROV. The Master is an Arduino Mega so that it can communicate with the computer without the need to add in software serial ports. The sketches below send messages to one another. This information would primarily be about battery voltage, but with extra instrumentation may include things like depth, temperature, camera status, and motor current. ![]() ![]() It would be more useful to have some ability to receive data from the ROV as well. The most basic arrangement for the ROV is one way communication between the handset Arduino and the ROV Arduino.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |