Pages: [1]   Go Down
Author Topic: Send a signal to COM ports (Arduino Mega Shield)  (Read 339 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone,

as it is said in the title, I am currently working with an Arduino Mega 2560 as a microcontroller with an Arduino Shield from DFRobot (here it is a picture of the shield : http://i.imgur.com/YmDhiBH.png). My project is to build a Hexapod, so I want to connect the servo driver boards to the COM ports from the shield. After connecting the different elements to each other, I wanted to check if the signal was running along the whole circuit. That's why I used a LED with a resistor to check. I put it on the COM ports (the side with the resistor on the Ground, and the other one on the TX) and I noticed that no signal was running through it. I searched into the Net and I read that I need to use a code which will permit to send a signal to these ports.

So I searched again on the Net but I haven't been able to find such a code. That's why I'm asking here if anyone knows this kind of code and could help me to resolve my issue.

Thanks a lot for reading my thread and good Sunday smiley
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 602
Posts: 33358
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

To use com ports on the Mega you use the Serial.write calls for com port 0 and the Serial1. Serial2. And Serial3. Calls for the other ports.
Logged

Pages: [1]   Go Up
Jump to: