💬 Sensebender Micro
-
Hi,
Three questions regarding SenseBender Micro:-
What board should I configure in Arduino IDE in order to upload sketches? Would it be equivalent to Arduino mini pro, or is there any "board library" to load ?(Didn't find it, Woudn't it make sense to be included in the examples/Libraries pack?)...
(Found it: https://github.com/mysensors/ArduinoBoards . If you look between the photos above there is a simple link lost in the between)
MySensors Admins: Just a small suggestion: As it is now, - a simple link between photos is easily overlooked. Can't you place it near the specs where it should be more visible? -
It has an I2C bus for the SI7021, but it seems the ATSHA204A (which I believe its I2C also) is connected to another pin (a3). Does this mean it has two I2C buses?
-
Can anyone confirm that the port that measures the battery voltage is A0?
Thanks,
Joaoabs -
-
Hi,
Three questions regarding SenseBender Micro:-
What board should I configure in Arduino IDE in order to upload sketches? Would it be equivalent to Arduino mini pro, or is there any "board library" to load ?(Didn't find it, Woudn't it make sense to be included in the examples/Libraries pack?)...
(Found it: https://github.com/mysensors/ArduinoBoards . If you look between the photos above there is a simple link lost in the between)
MySensors Admins: Just a small suggestion: As it is now, - a simple link between photos is easily overlooked. Can't you place it near the specs where it should be more visible? -
It has an I2C bus for the SI7021, but it seems the ATSHA204A (which I believe its I2C also) is connected to another pin (a3). Does this mean it has two I2C buses?
-
Can anyone confirm that the port that measures the battery voltage is A0?
Thanks,
Joaoabs -
-
For the battery powering voltage measuring do you mean that this is not needed after all? (https://www.mysensors.org/build/battery#measuring-and-reporting-battery-level)
It would be just a matter of enabling the flag "#define BATT_SENSOR 199 " and no resistors needed? -
Sorry for the dummy question, but my SenseBender Micros came with a small white sticker on top of the Si7021 sensor (like in the pictures above). Is it supposed to be removed or to stay like that?
-
Hello!
Help me understand why the sketches are not loaded in Sensebender Micro - there is a synchronization error:
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x82
....
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding-
FTDI connected via 3.3V jumper
-
Another device built on the SB Micro with SB bootloader is also not flashed with the same error, but on the PC of my friend, sketches successfully loaded into the device and on my PC are given the correct data when working sketch
-
device and serial port are selected correctly
-
mySensors Lib and device packs(AVR, SAMD) installed with standard lib and device managers(and also added path https://raw.githubusercontent.com/mysensors/ArduinoBoards/master/package_mysensors.org_index.json in the settings menu)
-
at the same time if I take a pure Pro Mini and load into it any sample sketch of mySensors package - it will successfully do it and will work.
What am I doing wrong and how do I get the Sensebender Micro to take sketches?
-
-
Hello!
Help me understand why the sketches are not loaded in Sensebender Micro - there is a synchronization error:
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x82
....
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x82
avrdude: stk500_recv(): programmer is not responding-
FTDI connected via 3.3V jumper
-
Another device built on the SB Micro with SB bootloader is also not flashed with the same error, but on the PC of my friend, sketches successfully loaded into the device and on my PC are given the correct data when working sketch
-
device and serial port are selected correctly
-
mySensors Lib and device packs(AVR, SAMD) installed with standard lib and device managers(and also added path https://raw.githubusercontent.com/mysensors/ArduinoBoards/master/package_mysensors.org_index.json in the settings menu)
-
at the same time if I take a pure Pro Mini and load into it any sample sketch of mySensors package - it will successfully do it and will work.
What am I doing wrong and how do I get the Sensebender Micro to take sketches?
-
-
Did you select the sensebender micro as target in Arduino? Is it the same FTDI device that is used on both computers?
@tbowmo
Yes, of course, I chose the target device "Sensebender Micro -> "Atmega328p, 1mhz" and "Atmega328p, 8mhz"(for device (RGBW controller) based on SB Micro with 8Mhz quartz resonator).I tried three different FTDIs.
With any other Arduino (with native loaders) there are no problems with these FTDI adapters.
-
@tbowmo
Yes, of course, I chose the target device "Sensebender Micro -> "Atmega328p, 1mhz" and "Atmega328p, 8mhz"(for device (RGBW controller) based on SB Micro with 8Mhz quartz resonator).I tried three different FTDIs.
With any other Arduino (with native loaders) there are no problems with these FTDI adapters.
-
Hello,
Coming back to the battery powering topic: I was checking some SlimNode code and it uses #include <Vcc.h> library to report battery level. I can see in that the example code above doesn't use it. Does anyone know what is the difference? Which is better?
Thanks, -
Hi,
The slimnode original thread has a few (not sure anymore which example I'm using now because the thread is huge and I've lost track of it)
Here is one example:
https://forum.mysensors.org/topic/2067/my-slim-2aa-battery-node/306and other:
https://forum.mysensors.org/topic/2067/my-slim-2aa-battery-node/116 -
Unless the bootloader is reprogrammed, then it defaults to 8mhz, and you have to actively set registers to run at 1mhz in your sketch.
Do you have a ISP programmer? If yes, could you make a memory dump, and send it to me?
@tbowmo
I apologize for the delay in replying, I was very busy with work.It turned out to be some mystical incompatibility of the FTDI and Sensbender Micro or a device based on its loader. Three versions of my FTDI refused to work with Sensbender Micro, but they worked with regular Arduino, and the fourth one, bought on AliExpress, works perfectly normal. Externally, all the same, only those that do not work with Sensbender Micro, the labeling of the chip differs slightly in the quality of engraving on the plastic.
Maybe it's fake or some kind of non-standard chips.
-
@tbowmo
I apologize for the delay in replying, I was very busy with work.It turned out to be some mystical incompatibility of the FTDI and Sensbender Micro or a device based on its loader. Three versions of my FTDI refused to work with Sensbender Micro, but they worked with regular Arduino, and the fourth one, bought on AliExpress, works perfectly normal. Externally, all the same, only those that do not work with Sensbender Micro, the labeling of the chip differs slightly in the quality of engraving on the plastic.
Maybe it's fake or some kind of non-standard chips.
@nailman There are a lot of fake FTDI modules. Some are labelled FTDI other claim to be FTDI but are CH340. Some have DTR others RST and good ones like Adafruit Friend it is selectable.
My recommendation is do not try to save a few bucks here. Spend money on a good quality FTDI adapter like Adafruit Friend.
-
Hi,
I'm using the mysensor lib for a while but I recently run into problems. I've some arduino pro minis running with dht22 sensors which send their data over nrf24 to an mqtt ethernet gateway.
But maybe someone can help me with this one: I have build my own sensebender-micro modules. First of all I programmed the fuses of the mega328p as follows: lfuse: 0xE2, hfuse: 0xD2, efuse: 0xFE. Then I've programmed the DualOptiBoot Bootloader to them, everything worked fine so far, I can upoload sketches from the Arduino IDE via FTDI Programmer. The Problem: When I upload the official example sketch and watch the serial monitor I just see the MySensors splash screen. It seems, that the sketch does not even run into the setup routine. This starts to make me crazy, since I do not even know where to search. If I upload other sketches (basic blinking led, serial port examples or the passive node example from mysensors) it shows that my hardware in general seems to work. When I enable debug this is the output:__ __ ____ | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___ | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __| | | | | |_| |___| | __/ | | \__ \ _ | | \__ \ |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/ |___/ 2.3.0 16 MCO:BGN:INIT NODE,CP=RNONA---,VER=2.3.0 26 TSM:INIT 28 TSF:WUR:MS=0 36 TSM:INIT:TSP OK 38 TSF:SID:OK,ID=100 40 TSM:FPAR 75 TSF:MSG:SEND,100-100-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 2084 !TSM:FPAR:NO REPLY 2086 TSM:FPAR 2121 TSF:MSG:SEND,100-100-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 4130 !TSM:FPAR:NO REPLY 4132 TSM:FPAR 4167 TSF:MSG:SEND,100-100-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 6176 !TSM:FPAR:NO REPLY 6178 TSM:FPAR 6213 TSF:MSG:SEND,100-100-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 8222 !TSM:FPAR:FAIL 8224 TSM:FAIL:CNT=1 8226 TSM:FAIL:DIS 8228 TSF:TDI:TSL 18229 TSM:FAIL:RE-INIT 18231 TSM:INIT 18239 TSM:INIT:TSP OK 18241 TSF:SID:OK,ID=100 18243 TSM:FPAR 18280 TSF:MSG:SEND,100-100-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 20289 !TSM:FPAR:NO REPLYEven the NRF24 connection seems to work. This is the output of my mosquitto broker when running the passive node example:
home/OpenMQTTGateway/LWT Online home/OpenMQTTGateway/version 0.7 mygateway1-out/100/255/0/0/17 2.3.0 mygateway1-out/100/255/3/0/6 255 mygateway1-out/100/255/3/0/11 Passive node mygateway1-out/100/255/3/0/12 1.0 mygateway1-out/100/0/0/0/6 (null) mygateway1-out/100/0/1/0/0 25.70 mygateway1-out/100/0/1/0/0 26.90 mygateway1-out/100/0/1/0/0 27.30 mygateway1-out/100/0/1/0/0 25.80 mygateway1-out/100/0/1/0/0 26.00I appreciate any help, thanks in advance!
Cheers