Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ATTiny acting weird #24

Closed
fjgaston opened this issue Apr 5, 2019 · 2 comments
Closed

ATTiny acting weird #24

fjgaston opened this issue Apr 5, 2019 · 2 comments

Comments

@fjgaston
Copy link

fjgaston commented Apr 5, 2019

Hi,
I just made my first module board and I started experimenting with it.
I burnt the bootloader and uploaded the code with the Arduino IDE and then I was able to read the voltage of the battery via I2C with my esp32 (I'm still waiting for my ESP8266).
Then the next day, I wasn't able to read the voltage and I wasn't even able to upload any program to the ATTiny "Yikes! Invalid device signature".
I investigated what could be wrong, the reset pin is 2.1V, it should be enough. When I de-solder the ATTiny85 I'm able to burn the bootloader or upload programs so it seems like the problem is in the board.
When I power it, the green led blinks once then 2 seconds later the green led turns on and stays on.
I can't figure out what's wrong and the strange thing is that it was working very well yesterday.

@stuartpittaway
Copy link
Owner

Hello, this could be many things, I'd suggest:

  1. Check wiring on the ISP header and pins
  2. Check for solder bridges between pins on the ATTINY
  3. Check you run "burn bootloader" against the attiny with the correct settings (this burns the fuses)
  4. Ensure you never select an external crystal on the Arduino menu

@fjgaston
Copy link
Author

fjgaston commented Apr 9, 2019

I checked and checked again and everything was right. But I noticed the side 2 of the ADUM 1250 was powered and the 2 inputs were disconnected and it pulled the SCK and SDA input of the ATTiny to the ground. I was stupid, trying to program the ATTiny with the I2C bus pluged, surely it doesn't make sense at all as the ISP and I2C use the same pins for the clock and SDA.
Now I know, don't try to program the ATTiny with I2C connected (VCC included)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants