Hi,
I've been using Moteino's for a while now and so far they've been excellent. Today I tried to use one with a Flash chip but I can't get it to take a program. The programmer won't respond. Any suggestions?
I've tried switching to a different Moteino and it works just fine. It seem to be the one I'm using. I foolisly soldiered it in place then tried to load a program and now it seems to be a dead one. Any ideas?
Thanks
How exactly did you modify or what did you solder to it?
All Moteinos pass through at least 2 different tests so there is almost 0 chance that you receive a dead Moteino.
I haven't modified it at all. I took it from the box and soldiered it to my circuit board. I'm using it for a sensor circuit board that I had OSH park make. I've got a few other versions working.. What on the circuit board could prevent it from taking a sketch?
Quote from: Marquis on February 23, 2016, 06:23:50 PM
What on the circuit board could prevent it from taking a sketch?
That's the 65 million dollar question :)
I could include my 375 guesses but I would be here typing all night :) .. How about you post a photo of your setup instead?
How about you pull it out of your circuit and try it that way without anything attached?
Have you tried another moteino in the same circuit, behaves differently?
I'm certainly not suggesting it's a quality issue on your part. I love your work and your boards. As you can see from my order history I'm a pretty big user of Moteinos. And you've got another order coming as soon I can get past the fact the RFM12b's are over.
I've only soldiered the Moteino side pins. The programming header and the three at the far end are not soldered down. I've taken my meter to all the pins to make sure I haven't shorted across any but they are all clear. It was my first large project with such small components but I did test each connect as I did it and it seems to be good.
I haven't tried removing the Moteino and putting in a new one as I'm not sure my desoldering skills are that good. Any ideas?
(http://i.imgur.com/FT0Aj1k.png)
Thanks for the photo but unfortunately it's not enough to tell what's going on.
What about a schematic?
PS - would have been nice to solder female headers to mate with the Moteino instead of soldering it directly to your board. Now that there's a problem its much harder to debug it.
I too am having the same issue here. But here are some clues, I have been using a Motenio R4-USB for about a year as my gateway to my Raspberry Pi. It has been working fine. FWIW I have a very old version or your gateway (written in Python..) that I tweaked to my own system. Just today I updated the SPIflash, RFM69, and the Lowpower to your latest version on GitHub. (BTW, I don't think my updating your libraries is the issue here, that is just an fyi).
So uploading your new gateway code for the Motenio, that is when I got the avrdude: stk500_recv() error. In googling around, there seem to be other people with the same issue with Arduino's, but not Motenio's. Solutions some provided were to change the board to one of the ATmega328 types. I tried them all, no luck for me. Some people have alluded to other things like an update has caused this ( Running Ubuntu here BTW...). I have not seen a conclusive issue, although it might be out there.
What is going on here is that when I upload, the rx/tx lights flash and everything on the Motenio looks like it is uploading. Then it stops, yet the IDE thinks it is still loading. Then after several seconds the error pops up, like there is a time out, and the Motenio hasn't been sent the "hey I'm done uploading" signal from the computer.
I had an extra Motenio-USB, but version R5 - it worked!
It seems that even though the R4-USB (my original gateway to the Raspbi) was working today just fine negates hardware issues.
Anyway, just some clues..
-- Mike
The circuit is a little messy but basically, the only pins that are connected are a few of the input pins (ones are that aren't used by RFM ) and the power pins. I have power coming from a LIPO battery or the solar cell as decided by the charger. I also use the 3.3 volts to run a few sensors.
I don't think that those would have anything to do with the Motenio accepting a program. Although I've been wrong many many times thus far.
Any hints?
As well, thanks Mike.. I'll try using some other 328 settings and see if I can get that to respond. I did try it on another Moteino (not attached to anything) and I was able to upload so it's strange that it's just some..
I'm using a Mac and I the latest Arduino IDE.
Marquis,
The PWR pin is going into a 3.9K resistor, nothing else.
So I see no power going into the Moteino, how do you power it?
Been doing some googling, it seems that the issue is with OSX and Linux based systems. I have tried a couple of solutions suggested, but nothing yet. Here is a link for my next attempt when I get a chance:
https://sites.google.com/site/marcobotprojects/arduino-ide/fixingarduinostk500recvprogrammerisnotrespondingerroronubuntu1404 (https://sites.google.com/site/marcobotprojects/arduino-ide/fixingarduinostk500recvprogrammerisnotrespondingerroronubuntu1404)
I think Marquis's problem is different, to me it looks like his Moteino is not getting any power at all, that would obviously explain the error he's seeing.
Hi Felix,
No, I have attached the older version of the schematic. The voltage comes from the battery chargers which outputs with the solar cell voltage if it's higher than the battery or else the lipo battery volts. The resistors are there to as a voltage divider so I can measure the voltage coming in.
The power isn't the problem. I can see 3.7 volts with my multimeter at the power pin. And I can see 3.3 volts at that pin on the circuit.. As well, let's say I had no power, I should still be able to load the program since while I'm plugged into the board I'm using the USB power.
I'll find the proper schematic and attach it.
Sorry that version didn't have all my labels on it. The vLoad (which connects to that voltage divider) is powered by that IC on the very far right of the circuit. From the vLoad NET over over there.
Ok at this point it feels like guessing what could be wrong. Just yesterday I tried to upload a sketch to a Moteino in a circuit that was not powering the Moteino, and I got the exact same error. Once power was ON it worked.
The only thing I can recommend to move this further is to remove the Moteino from the rest of the circuit. If that means desoldering it, then sorry to say but .. it should not have been hard soldered into place before checking if it works. With your first prototype you need to always make it easy to disassemble/debug.