Offline
Newbie
Karma: 0
Posts: 17
|
 |
« on: January 17, 2013, 04:14:17 pm » |
Hi, My arduino Mega board is setting 3 >3,3 V on the output pin when I'm writing a HIGH to the outputs. Is it possible to modify this to 5 Volt.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 248
Posts: 16535
Available for Design & Build services
|
 |
« Reply #1 on: January 17, 2013, 04:23:31 pm » |
Do you have pinMode (pinX, OUTPUT);
in void setup? Missing that is often the culprit.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 17
|
 |
« Reply #2 on: January 17, 2013, 05:05:02 pm » |
PinMode is defined in void setup()
int rel1 = 38; //living 1 int rel2 = 39; //living 2 int rel3 = 40; //keuken 1 int rel4 = 41; .... void setup() { ... pinMode(rel1, OUTPUT); pinMode(rel2, OUTPUT); pinMode(rel3, OUTPUT); pinMode(rel4, OUTPUT); ...
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Edison Member
Karma: 44
Posts: 2224
What a host of balls she had seen: gaity, the brass buttons...
|
 |
« Reply #3 on: January 17, 2013, 05:15:42 pm » |
What voltage is your mega board running at? Is it a custom made board? Is it a genuine Arduino? If so, what model?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
God Member
Karma: 9
Posts: 775
|
 |
« Reply #4 on: January 17, 2013, 05:20:44 pm » |
Or, is there anything connected to the output pin that might be "dragging down" the voltage? With no load on the output and a 5V power supply, you should be very close to 5V.
|
|
|
|
|
Logged
|
|
|
|
|
Austin, TX
Offline
Faraday Member
Karma: 41
Posts: 5172
CMiYC
|
 |
« Reply #5 on: January 17, 2013, 11:23:53 pm » |
"Rel" as in "relay"?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 17
|
 |
« Reply #6 on: January 18, 2013, 07:20:18 am » |
I have 2 boards. Both gives te same result. 3 to 3,3 V with no load. First board is a original arduino Mega 2560 and the second is a ARduino Mega ADK
James C4S "rel" Yes , my outputs are named 'rel x'. Could this be a problem ?
Majenko : Voltage of the board. Where can I see this ? I use a 9V power supply. On the board I have connection with 5V an one with 3.3 V. So I think the board is running at 5 V
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Edison Member
Karma: 44
Posts: 2224
What a host of balls she had seen: gaity, the brass buttons...
|
 |
« Reply #7 on: January 18, 2013, 08:16:34 am » |
Do you have the R3 mega? It will have a pin labelled IOREF if you do. If so, what is the voltage on that pin?
|
|
|
|
|
Logged
|
|
|
|
|
Austin, TX
Offline
Faraday Member
Karma: 41
Posts: 5172
CMiYC
|
 |
« Reply #8 on: January 18, 2013, 09:15:53 am » |
"rel" Yes , my outputs are named 'rel x'. Could this be a problem ? If you are connecting relays to the outputs and seeing less than 5V, then the relays are drawing enough current to damage the I/O pins.
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Online
Edison Member
Karma: 65
Posts: 2260
|
 |
« Reply #9 on: January 18, 2013, 10:24:11 am » |
I have 2 boards. Both gives te same result. 3 to 3,3 V with no load.
The pins may have been overloaded and damaged.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Valencia, Spain
Online
Edison Member
Karma: 65
Posts: 2260
|
 |
« Reply #11 on: January 18, 2013, 12:28:01 pm » |
Majenko,
The mega board has only a AREF pin, no IOref.
Try the "5V" pin.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 17
|
 |
« Reply #12 on: January 19, 2013, 04:54:34 pm » |
problem solved after I disconnected the 5V comming from the arduino, on the connector of the relay board.
|
|
|
|
|
Logged
|
|
|
|
|
|