Pages: 1 [2]   Go Down
Author Topic: Analog ports disturbed  (Read 2276 times)
0 Members and 1 Guest are viewing this topic.
United Kingdom
Offline Offline
Tesla Member
***
Karma: 224
Posts: 6593
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The wiring of the pot in the photo looks correct to me, assuming it is a normal pot with the wiper being the middle connection.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

texas
Offline Offline
God Member
*****
Karma: 27
Posts: 862
old, but not dead
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The wiring of the pot in the photo looks correct to me, assuming it is a normal pot with the wiper being the middle connection.

Ok I'm blind, I magnified it and now I can see that the orange wiper wire extends beyond the power bus and into A1.  What about the red wire on the outer tab of the pot?  It "appears" to be connected to an empty bus strip I think.  Also I see a ground wire connecting the bottom negative bus to the top one, but I don't see a positive wire extending to the bottom bus.
« Last Edit: March 14, 2013, 07:09:04 pm by afremont » Logged

Experience, it's what you get when you were expecting something else.

Italy
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I found the problem. When I store a value from analogRead and then use it in analogWrite, all the other analog ports gets disturbed.

Do you have the same problem?
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 224
Posts: 6593
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If analogWrite interferes with analogRead, this normally means that you have a common ground wire serving your input and output devices, and a dodgy connection in that ground wire.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Italy
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes you are right!!! Thank you so much!!!

 But What should I do to solve the problem?
Logged

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

Make the contact secure soldering wires is a good idea.
Or route the grounds separately so they converge at one point on the arduino ground.
Logged

Italy
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Now all the GNDs are converging at one pin next to the 5v, are you saying that i should wire them that the pmw Ground ends at the GND next to digital pins?  smiley-fat
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 224
Posts: 6593
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Best is to use 2 ground pins on the Arduino. Use one to connect the ground side of your analog input devices (the pot, the temp sensor and the voltage divider). Use the other one to connect the ground side of your ourput devices (TIP121 and associated 12V supply), and power to the Arduino if it is not coming from USB.

Did you add that resistor in series with the TIP121 base?
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Italy
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Now i'm at school, when I get back home i will let you now!
 smiley-mr-green
Yes i added it! Excuse me ignorance, but why Arduino needs it?
Logged

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

Quote
but why Arduino needs it?
To limit the base current to a safe level.
Logged

Italy
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My Arduino burned up... I am literally crying. After one year and an half of service. I tried to upload blink sketch and it works but after a while the atmega328 starts to heat... I'am so sad  smiley-cry
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17263
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My Arduino burned up... I am literally crying. After one year and an half of service. I tried to upload blink sketch and it works but after a while the atmega328 starts to heat... I'am so sad  smiley-cry

Well for about $5-6 you board can enjoy another year and half of service, that's pretty cheap entertainment.

Maybe you weren't storing your board away in a ESD bag or using a grounded wrist strap.  smiley-wink

Lefty
Logged

United Kingdom
Offline Offline
Tesla Member
***
Karma: 224
Posts: 6593
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you disconnected everything from the Arduino except the USB, and checked that nothing is shorting the underside of the circuit board?

If yes and the atmega328p is still heating up, then probably all you need to do to get it working again is purchase a new atmega328p-pu with bootloader already installed.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Italy
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I Will try! But the sketch Works! Maybe the Voltage regulator that doesn't pushes correct Voltage to to atmega?
Logged

Pages: 1 [2]   Go Up
Jump to: