IOShield damaged Moteino?

Started by BettaDoo, August 06, 2019, 01:09:06 PM

BettaDoo

Hi, I've got two MoteinoUSB R7 RFM69HCW 869-915mhz that I'm working with to use on some projects. I've tested both of them using the Send/Receive examples and both worked perfectly fine. I then attached a Moteino to an IOShield for testing and nothing went wrong for an entire day. Near the end of the day though, I started having trouble uploading code to the Moteino attached to the IOShield via Arduino IDE, but I didn't have trouble uploading an empty sketch.  Unplugging the usb cable and plugging it back in would sometimes have all the LEDs on. I took them apart and tried uploading code to the Moteino to no avail, unless it was an empty sketch. The next day, I am able to upload to the same Moteino without any trouble and send/receive. Unfortunately I forgot to copy the error code when I was having trouble uploading, but I remembering it saying avrdude.

I tried attaching another Moteino to the IOShield and on the first try of uploading code, it didn't work. Now separated from the IOShield, the Moteino still has trouble uploading code to it. I'm hoping it'll work out like the above mentioned Moteino and start working again eventually. This is the current error I'm receiving when trying to upload.

Arduino: 1.8.9 (Windows 10), Board: "Moteino / MoteinoUSB"

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x3f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x3f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x3f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x3f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x3f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x3f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x3f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x3f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x3f
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x3f

https://imgur.com/a/O6TKV70 (Photos of the board)

Felix

QuoteI started having trouble uploading code to the Moteino attached to the IOShield via Arduino IDE, but I didn't have trouble uploading an empty sketch
That one is a new one  :-X
But it almost sounds like the upload starts, is successful for very small sketch, but for anything longer it will start to fail.

Anyway, those errors can mean a lot of different things. The idea is that for some reason avrdude can't start or complete the upload.

How exactly is everything wired together and what is the power source?
The IOShield is just a daisy chained set of shift registers. It can take power from an isolated 24VAC through the 5V buck converter + filter cap - yours has that so is this powered from a xformer?

I see the jumpers are stock but they appear to have been fiddled/changed at some point.
How many ports are you turning ON at 1 time? Are you somehow overloading the LDO?

Were they powered from both xformer and USB at the same time?


BettaDoo

I'm using this setup as is, shown in the second picture of the imgur link. The power source is only coming from the usb port from my laptop.

I am not powering it from the 24 AC side. I just have the parts installed on the board.

The jumpers? Do you mean the "LEDs Enabled" and "VCC" solder points on the board?
When I was testing it early on, I was sending the ALL command. I'm sorry, I don't have a lot of experience with electronics. What is the LDO?

Nope, only powered from the USB at all times.

BettaDoo

Watched these videos for explanation :

https://www.youtube.com/watch?v=Z3GkpakZr7A


https://www.youtube.com/watch?v=iw4z07oJGq0


I don't believe I did unless me touching the board somehow shorted it? Other than that, I've kept the VCC solder on the board at 3v3 and powered the Moteino and the IOShield through the usb port on the Moteino.

Felix

I think the bottom line is the IOShield has no reason to damage anything.
I have no way of guessing what happened in your setup.
But you should probably NOT have the buck converter installed if you're not using it.
I have headers on my setup so I completely disconnect the IOSHield when I need to reprogram the Moteino that controls it.

BettaDoo

Thank you Felix, I will take everything you've said into consideration when using the board again in the future.