Loading...
Pages: [1]   Go Down
Author Topic: output voltage digital I/O  (Read 315 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Brattain Member
*****
Karma: 242
Posts: 16504
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you have
Code:
pinMode (pinX, OUTPUT);
in void setup? Missing that is often the culprit.
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: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Edison Member
*
Karma: 42
Posts: 2200
What a host of balls she had seen: gaity, the brass buttons...
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
God Member
*****
Karma: 9
Posts: 771
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Faraday Member
**
Karma: 41
Posts: 5170
CMiYC
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

"Rel" as in "relay"?
Logged

www.cmiyc.com - A guide to being an Enginerd

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

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 Offline
Edison Member
*
Karma: 42
Posts: 2200
What a host of balls she had seen: gaity, the brass buttons...
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 Offline
Faraday Member
**
Karma: 41
Posts: 5170
CMiYC
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

"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

www.cmiyc.com - A guide to being an Enginerd

Valencia, Spain
Offline Offline
Edison Member
*
Karma: 65
Posts: 2246
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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

Majenko,

The mega board has only a AREF pin, no IOref.
The ADK-board has AREF and IOREF. I will check the voltage on that pin.

Fungus,
The output can not be overloaded. One board is never connected with the relay shield.
The relay shield has opto couplers. Max current is 5 mA.
I use this shield :
http://www.aliexpress.com/item/New-16-Channel-12V-Relay-Module-Interface-Board-For-Arduino-PIC-ARM-DSP-PLC/668259106.html
Logged

Valencia, Spain
Offline Offline
Edison Member
*
Karma: 65
Posts: 2246
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Majenko,

The mega board has only a AREF pin, no IOref.

Try the "5V" pin.

Logged

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

problem solved after I disconnected the 5V comming from the arduino, on the connector of the relay board.
Logged

Pages: [1]   Go Up
Print
 
Jump to: