arduino digital pins do not work - arduino

The digital pins in arduino suddenly died. I was work on a project and every thing was good I don't know what is the problem with this and what is cause it.
Please anyone can help me to know the problem and why? and if it can repair.

You can set those pins to high and then check with voltmeter if they are showing a voltage of approx. 5V, otherwise they may be dead
You can replace the main controller in your arduino board in some cases like Arduino uno.

Related

atmega32u4 Failed to enter programming mode

I have designed a custom board using atmega32u4 with a few other components (Such as RTC, memory and etc) but left them empty to test if the microcontroller can be programmed. After just hand soldering the microcontroller and the necessary capacitors and resistors, ATMEL Studio can't read device signature.I'm using AVRISP MKII. This board was inspired by ARDUINO ProMicro in design. The things I tried to solve it:
Measure all 3.3 volt supply lines and all of the grounds. (They all correspond with PCB and schematic)
Checked SPI lines to see if microcontroller receives commands from the programmer by using oscilloscope.
I tried removing the 16MHZ crystal, still the same.
I reflowed the microcontroller since it is a QFN type (atmega32-MU package) and I have a few via holes under the micro for flux to come out.
I have properly washed the board after reflow.
I have AREF grounded with a 0.1uF capacitor and !HWB pin (PE7) is left empty. I didn't ground it.
I tested the programmer with an actual promicro board and it programs fine.
I think I'm missing something but I don't know what... I'd be grateful if you guys could help me. Attached is the schematic of the circuit.
The micro controller RESET is indicated by MICRO RST on pin 13. That RESET on PB4 is for another device which is not populated yet and left empty, I checked Pin 13 with Oscilloscope and it seemed working fine and going to zero at the first moment of programming. Also MISO and MOSI and SCK were sending signals to the relevant pins.
Thanks
If you are programming the board with ISP you have to connect RESET to the programmer. otherwise the controller could not be programmed!
Image from microcontroller.net
It seems that your RESET is on PB4 but for programming it should be connected to RESET of uC.
So, I realized the problem after almost a month! I had removed the 16MHz crystal from the circuit and this caused the problem with programming. Now, after placing the crystal the program is successfully uploaded to the ATMEGA32U4.

Arduino Accelerometer mpu6050, No raw data

I am working on a project which uses an accelerometer with an arduino Nano.
I am using the MPU6050. However I have the same static values wether I move the MPU6050 or not... I only get -1. That's really frustrating considering that all the tutorials I have watched achieve to retrieve data.
To begin with, I connected the MPU6050 with the arduino like so :
Then I used the official code https://playground.arduino.cc/Main/MPU-6050#short
that is to say this one :
And that's what I get ...
I bought a new one, but I still have the same issue...
If someone has any Idea, I would really appreciate !
Thanks
How do you know the I2C device address is correct? You could try scanning the bus to discover all the devices and their addresses. That would confirm your bus setup is working as well. Found this quick guide on accomplishing this: http://henrysbench.capnfatz.com/henrys-bench/arduino-projects-tips-and-more/arduino-quick-tip-find-your-i2c-address/
"The I2C-address depends on the AD0 pin of the sensor. If it is connected to ground, the address is 0x68. If it is connected to VLOGIC (+3.3V) it is 0x69. There are a few sensor boards with the MPU-6050 sensor already soldered on it."
So it is indeed necessary to solder the pins. We didn't thought about this because we connected VCC and GND without soldering as well and the LED was working fine whereby we assumed that it should be enough to stick them together for now. Seems like we were wrong and I've got now three working gyros at home.

Arduino Relay Modulo stops working

I have an Arduino controlling a lamp through a relay module, everything works fine for some hours, but now it stops working. The led to on/off as expected, but i cant hear the "click" anymore, and now it is always on.
A relay module can burn out? My lamp is 250w/110V
Problem SOLVED: The issue was that i had others sensors connected to Arduino 5V output pin (the relays was already on a separated 5V), and that was getting current from arduino board causing arduino not able to turn on the relay coil.
After change sensor to use a separated 5V source (with more current) everything works fine again.
My advise: be careful to use arduino 5V or 3.3V as a source power because it has low current, causing errors or even restarting arduino.

How to prevent Arduino's digital pins goes high on bootup?

I have done my project finally :) , but i noticed that the arduino board on startup it's some digital pins goes high for a bit time 1 seconds or little more! and this causes problem in my project because i'm using it in starting dc motor.
I forgot to mention that i have 2 relays connected with arduino and they are triggered on arduino startup or with resetting it, then my code works perfectly. I tried doing pull up resistor and pull down resistor but it seems same situation. Also tried (INPUT_PULLUP) and no result.
Any suggestion please?
I had the same problem when booting the arduino/connecting to a power source. Only using digitalWrite(pin, LOW) in void setup() did not work for me.
Every pin needs to be connected to a physical pull-down 10kOhm resistor in parallel to whatever you're controlling.

esp8266 programme memory corruption

I programmed arduino sketch direct to ESP8266, then my code works fine. When I remove USB to power off the board, and then power it up again and inserting USB, my code is not working.
It seems like Esp8266 failing to read program memory or is there anything I am missing when I am powering up the board?
I am not sure, my board have issue or I am missing something.
Any one have faced this kind of issue before?
Those who will face this problem in future, actually my program memory was fine. I forgot remove Gnd pin from GPIO 0 after I programmed the esp8266.

Resources