Loading...
Pages: [1]   Go Down
Author Topic: Program Arduino Mega over Serial Pins 0 and 1  (Read 126 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all, I'm working on a ROV project and am wondering if there is anyway I could tweak the ROV program without plugging into the USB header. The project requires a twisted pair to be connected to serial pins 0 and 1. Any way to program using just these pins?
Logged

Queens, New York
Online Online
Edison Member
*
Karma: 28
Posts: 1559
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I dont think so. If you were using a UNO, I would have suggested removing the Atmega chip and use another board to reprogram it.
Logged

UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino

Arduino Tutorials, coming soon.

"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown

Offline Offline
Newbie
*
Karma: 0
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The electronics housing onboard the ROV will be filled with tech grade mineral oil so access of the Arduino will difficult if any tweaks need to made.
Logged

Queens, New York
Online Online
Edison Member
*
Karma: 28
Posts: 1559
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why not make your own USB extention cable and solder one end directly to the Mega, and the other be feed through a liquid tight rubber plug. This way you can still use the USB port without needing to remove the Mega from the ROV.
Logged

UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino

Arduino Tutorials, coming soon.

"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 242
Posts: 16496
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you do the twisted pair serial over a different mega serial port instead?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17

Offline Offline
Newbie
*
Karma: 0
Posts: 44
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yea I can do the twisted pair over any of the serial ports, putting a usb header on the box would work but the housing is tight on space and since I'm using industry grade connectors it would require more time/cost
Logged

Queens, New York
Online Online
Edison Member
*
Karma: 28
Posts: 1559
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The housing is metal right? This might not work but, you could maybe look into is using an jail broken Android phone or tablet. What you would do is, set it up inside the ROV and control it with another Android. Essentially you would be slaving the ROV Android and have it communitcate via Bluetooth. What you do on the master, will transfer over to the slave.

Similar to what computer technicians do to get control of your computer and trouble shoot it over the internet.
Logged

UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino

Arduino Tutorials, coming soon.

"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown

UK
Offline Offline
Tesla Member
***
Karma: 89
Posts: 6344
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all, I'm working on a ROV project and am wondering if there is anyway I could tweak the ROV program without plugging into the USB header. The project requires a twisted pair to be connected to serial pins 0 and 1. Any way to program using just these pins?

I don't see why not, if you can arrange for those pins to be connected somehow to a serial port on your PC. Could you use an external FTDI board for that? You'd need to have some way to reset the Arduino to get the bootloader to run, though. It would be possible for your currently-running sketch to do that (with the help of some additional hardware) but then you run the risk of sawing off the branch you're sitting on if anything goes wrong. If you can bring the reset line out too, I think a more reliable solution might be  possible.
Logged

Pages: [1]   Go Up
Print
 
Jump to: