United Kingdom
Online
Faraday Member
Karma: 131
Posts: 4687
|
 |
« Reply #15 on: March 14, 2013, 07:01:32 pm » |
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. http://www.eschertech.com
|
|
|
|
texas
Offline
God Member
Karma: 26
Posts: 841
old, but not dead
|
 |
« Reply #16 on: March 14, 2013, 07:06:31 pm » |
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
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #17 on: March 17, 2013, 04:08:14 pm » |
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
Online
Faraday Member
Karma: 131
Posts: 4687
|
 |
« Reply #18 on: March 17, 2013, 04:10:34 pm » |
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. http://www.eschertech.com
|
|
|
|
Italy
Offline
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #19 on: March 17, 2013, 04:28:20 pm » |
Yes you are right!!! Thank you so much!!!
But What should I do to solve the problem?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Online
Brattain Member
Karma: 277
Posts: 25556
Solder is electric glue
|
 |
« Reply #20 on: March 17, 2013, 05:28:30 pm » |
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
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #21 on: March 18, 2013, 02:49:46 am » |
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? 
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Online
Faraday Member
Karma: 131
Posts: 4687
|
 |
« Reply #22 on: March 18, 2013, 03:05:10 am » |
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. http://www.eschertech.com
|
|
|
|
Italy
Offline
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #23 on: March 18, 2013, 03:23:30 am » |
Now i'm at school, when I get back home i will let you now!  Yes i added it! Excuse me ignorance, but why Arduino needs it?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Online
Brattain Member
Karma: 277
Posts: 25556
Solder is electric glue
|
 |
« Reply #24 on: March 18, 2013, 09:11:19 am » |
but why Arduino needs it? To limit the base current to a safe level.
|
|
|
|
|
Logged
|
|
|
|
|
Italy
Offline
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #25 on: March 18, 2013, 05:26:15 pm » |
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 
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Online
Brattain Member
Karma: 279
Posts: 15317
Measurement changes behavior
|
 |
« Reply #26 on: March 18, 2013, 05:31:36 pm » |
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  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.  Lefty
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Online
Faraday Member
Karma: 131
Posts: 4687
|
 |
« Reply #27 on: March 19, 2013, 04:23:18 am » |
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. http://www.eschertech.com
|
|
|
|
Italy
Offline
Newbie
Karma: 0
Posts: 15
|
 |
« Reply #28 on: March 19, 2013, 05:11:07 am » |
I Will try! But the sketch Works! Maybe the Voltage regulator that doesn't pushes correct Voltage to to atmega?
|
|
|
|
|
Logged
|
|
|
|
|
|