💬 NModule
-
Thanks
Then I guess all that is left is to motivate you to start OTA and improve it (finetune) it to nmodule
I used it for regular modules and it is really practical, but I never had much luck with optimizing modules for battery performance. I would get a half year/year with 2 AA batteries, which is not that good comparing with your tweaks for CR battery.Keep us updated on other modules, people are waiting for your tests to start ordering
-
@dakipro for OTA I don't think there's much to do with batteries & OTA' Either the batteries allow continuous load (CR123, AAA, li-ion etc) or you just can't do it.
For battery life it's pretty simple but people keep choosing the wrong options and end up with poor battery life/instability etc etc. That's the reason I created the NModule: cheap and sure way to get a good battery life. Then I got a bit wild with the "shields" but that's another story
For other shields I'm making (slow) progress but I hope to take NModule, TH, Light/SSR, dual touch button, MiLight bridge and PWM boards out of the "work in progress" status during the next 2 weeks.
-
Hey @Nca78 I received the boards and components (yay!)
But... I connected three modules, and none of them works
They all have transport (radio?) fail like32 TSM:INIT
49 TSF:WUR:MS=0
81 !TSM:INIT:TSP FAIL
98 TSM:FAIL:CNT=1
114 TSM:FAIL:PDTI tried connecting radios from two different batches, I tried connecting only the radio and arduino, I tried powering it from separate powersupply and only debug via serial. I tried provided sketch and also tried dummy sketch from the examples. I tried using the CR battery, node works fine except that the radio doesn't start communicating.
I do measure 3V on the radio pins. I tried with and without radio cap.I am using chinese silicon mat to solder components on, I read somewhere that you use something similar *(not that I am spying on you ) but could it be that I am frying all the radios with static electricity?
I have used the mat before and it works fine with regular radios, nothing fried so far, but there is something preventing nodes from workingDo you have any suggestions on how I can debug them and see what seems to be the problem?
-
Hello, @dakipro, can you show a picture of one of the board ?
Did you short the jumpers (JPOWER and JRDIO) if you're not using any regulators ?Yes I use a cheap silicon mat because it's so convenient, and I never had any problems with it all my radio worked.
-
@dakipro
I get the impression that not all radio modules use the same pinouts. You may want to confirm that yours are the same as @Nca78's in that regard.
-
@NeverDie is right. Some modules like those from CDEByte are different from the classic SMD modules from AliExpress and must be soldered on the "pa/lna" pinout (the one closest to the edge of the board).
-
Looks as though the PA/LNA part of the silkscreen warning got largely obliterated by the solder pads.
-
Must I have a radio cap?
I connected the jumpers now quickly for a test (missed the part that I need them), but still same error49 TSF:WUR:MS=0
81 !TSM:INIT:TSP FAIL
98 TSM:FAIL:CNT=1
114 TSM:FAIL:PDT
10158 TSM:FAIL:RE-INIT
10174 TSM:INIT
10207 !TSM:INIT:TSP FAIL
10240 TSM:FAIL:CNT=2
10256 TSM:FAIL:PDTHere is the photo of the board (a bit blurry, I can take it again if it helps)
I am missing the radio cap as I was testing lest night without them, but I can solder them in a few hours and test again if you think it will help.
I connect power to the vcc pin of the "connection pins" right?
Radio is the one linked in the BOM from aliexpress
-
I put the radio cap back (4.7uf the largest I have in smd), but still same error
-
Your photo seems to show some hair-like filaments. Don't know if they're conductive, but, if so, maybe they're bridging some of your solder pads? Have you checked with a continuity meter?
-
checked between the pins, no radio pins are touching each other. Those hairs er most likely from the cat, got them cleaned after the photo.
I will try to make one more module in a few days and test.But to confirm, for the simplest module I need >4.7uF cap, pro mini and the radio, two jumpers (jpower and jrdio) and some mock sketch, and it should all work?
Have I missed some other jumper or resistor or some other component maybe?
-
@dakipro no you're not missing anything now.
Cap is not even necessary at the moment don't worry about it.Problem is connection with radio so you have to make sure :
- VCC and GND pins of radio are correctly connected (seems it's done)
- SPI pins are correctly connected to the radio, check the "connecting the radio" page for the pinout on the pro mini, and radio module pinout. Then check continuity from radio connector to matching pin on radio side, you might have a soldering problem.
-
@dakipro you can also check the continuity between adjacents pins of the radio modules, it should be in MOmhs, if lower that could be a reason for failing communication too.
-
@dakipro you can also check the continuity between adjacents pins of the radio modules, it should be in MOmhs, if lower that could be a reason for failing communication too.
Just reading on computer instead of phone and I see you did it already, so except a connection problem with the SPI pins I don't see any reason for failure...
-
Thanks
Then I guess all that is left is to motivate you to start OTA and improve it (finetune) it to nmoduleJust did OTA on a main powered NModule with MYSBootloader and it worked like a charm.
I will test with a battery (CR123) module at 1MHz now, and post a tutorial later.
-
-
IT WORKS!! Life is worth living again...
I've assembled now fourth module and it works, only different thing I did is that I have soldered the radio and power jumpers before connecting the module together. It could be that without jumpers essential component of all electronics (white smoke) gets out of the radio, not sure what happened. But it works!I was struggling a bit to figure out all components needed and all the steps, it might be helpful to have a "short guide", this is for my own reference of what I did in order to get CR2032 module for using with TempHumDoor shield:
Components needed [nModule]: pro mini, radio, nmodule board, 1 capacitor for radio larger then 4.7uf (I har only 10uf, I have ordered 47uf for future modules).
Assembling process
- Burn 1mhz bootloader on pro mini
- solder two jumpers for jpower and jrdio
- solder the radio to the board
- Control that there is no connection between the radio pins, resistance is at least above 200Kohm (don't skip this part thinking it cannot happen to you, it will happen)
- Solder >4.7uf (f.eks. 10ud) smd.
- Solder all legs to arduino (except last two RXI and TX0, you will see them missing when you align nModule)
- Take off the plastic from the legs, before you solder it to the radio (do this BEFORE you solder it to the board)
- Solder arduino to nModule board
- Since the capacitor is very small, just check if there is no short between plus and minus (vcc and gnd) pins, as somehow I managed to short them on one module, it turned out that one of the caps was shorting it, probably by overhitting or something.
Upload mockMySensors sketch and check that node works properly (spare yourself a trouble, no point continuing further if this doesn't work) By this point you should have node looking like (better then) this:
TempHumidityLightDoor shield components: SMD SI7021 for temperature and humidity and a MAX44009 for light, two capacitors larger then 100uf (I used two of 100uf, waiting for 220 to come). And the work so far.
You basically solder these three/four components and the battery holder as described on the shield here https://www.openhardware.io/view/398/NModule-Temperature-Humidity-Light-Door-sensor-shield
I didn't yet solder LEDs, but they are accessible after assembling the module.
Then it looks like this:Now that nModule #1 is completed, you continue with other modules
-
It is great to hear that OTA update is coming soon @Nca78 looking forward to the tutorial
-
If the "power" board is used, shall I keep the voltage regulator on Arduino? Without it, i think powering the board from RAW pin will not work.
-
@Haozhi-Wang it will depend how you connect things on the "power" board and/or what regulators you use on the NModule board.
There are 2 reasons to remove the regulator :- save energy if you are running on battery, it's not a big waste so if you are using CR123 or AAA you can keep it so it's possible for you to power from RAW with a higher voltage
- when powering from main, allow higher RAW voltage with a better voltage regulator on the NModule or the "power" board (on promini clones usually the maximum voltage is usually 9V)
There is a connection between the RAW pin of the promini (on the long side) and the RAW on the "power board", so whether it will work if you use a regulator on the "power" board and remove regulator on the promini will depend on the promini you use, if there is a track betwenn the 2 RAW pins or if it goes through the regulator.
I hope it answers your question, if not please describe more clearly what sensor you are building, with what power source and why you want to power it from RAW.
-
Guys, pls. have in mind that Ebyte short NON pa+lna module uses pa+lna pinout.
Took me some time to figure it out
-
I love those shields... to bad they dont use MysX connector Any thoughts about 2.0 rev?
-
@sundberg84 I'm working on it
-
@Nca78 Thanks you for you detailed answer.
The power source i am going to use is a CR2032. My bad, I overlooked the three RAW, VCC and GND connectors (yellow) on the power board site.
For my case, i think shout circuit of JPOWER will be a even better solution
-
@Haozhi-Wang said in NModule:
@Nca78 Thanks you for you detailed answer.
The power source i am going to use is a CR2032.
Yes, for that case you need to short JPOWER and JBRD.
And don't forget to double check your USB adapter every time you connect it to your computer, to make sure you have selected 3.3V, else you will fry your radio with 5V.
-
Hi there!
I've ordered 10 PCBs from iTEAD, so now... I'm plenty of them to do some tests.
Can you confirm these Minis are ok?
https://www.aliexpress.com/item/10pcs-ATMEGA328P-Pro-Mini-328-Mini-ATMEGA328-3-3V-16-MHz-for-Arduino-3-3V-16/32784455996.html?spm=a2g0s.13010208.99999999.271.swhWGMBtw, I have some battery boosters, I have used them already with success on breadboard. Have you got any experience about it? Do you think the PCB is hackable to integrate it?
Thanks!
-
Can you confirm these Minis are ok?
https://www.aliexpress.com/item/10pcs-ATMEGA328P-Pro-Mini-328-Mini-ATMEGA328-3-3V-16-MHz-for-Arduino-3-3V-16/32784455996.html?spm=a2g0s.13010208.99999999.271.swhWGMYes they are ok, they seem to use the Sparkfun layout if I believe the reset button and the position of the A6/A7 pins. I use the boards with a smaller, rectangular reset button on my NModule PCB. The only problem I ever had with "different" ProMini board was the connection between the vcc of the programming header was cut when removing the voltage regulator so board was not powered anymore when using FTDI adapter.
Btw, I have some battery boosters, I have used them already with success on breadboard. Have you got any experience about it? Do you think the PCB is hackable to integrate it?
No, if you use a booster you need some extra caps for filtering the output, and a voltage divider to measure battery voltage, there's no space for that on NModule. I made NModule to have a compact "all included" board, so it's made to use low power sensors, that can run at low voltage so you don't need a booster.
If you really want to use a booster try EasyPCB.
-
Thanks @Nca78 ! I'll order some a lot of 10. Just in case...
EasyPCB
You'r right. Thanks for this clarification - really don't need to use the boosters or have battery measurements, so I'll keep the sensors small as you designed.
-
or have battery measurements
You will have battery measurement, because you will power the atmega with the battery directly so it's possible to read Vcc.
When you use a booster Vcc is always the same so you need a voltage divider on the battery to know it's voltage.
-
or have battery measurements
You will have battery measurement, because you will power the atmega with the battery directly so it's possible to read Vcc.
When you use a booster Vcc is always the same so you need a voltage divider on the battery to know it's voltage.Sorry, n00b here! Thanks again, nca!
-
@ghiglie no use to be sorry, we were all beginners at some point in time
-
@nca78 Hi, I am trying to use nmodule without batteries and connect 12v as a power source from usb breakout. I am not sure if I should remove the voltage regulator from pro mini? Also, should I add my own regulator to the nmodule (on BRD section)? Where should I connect my + and - from usb breakout to the nmodule? Thanks alot!
-
Hello,
what does that mean ?
@zmatokan said in NModule:connect 12v as a power source from usb breakout.
Do you power the board from 12V or 5V ?
-
Hello,
what does that mean ?
@zmatokan said in NModule:connect 12v as a power source from usb breakout.
Do you power the board from 12V or 5V ?
Hi,
thanks for a very quick reply. I am trying to use a 12v external power source to power the arduino + radio + nmodule board. I tried soldering AMS1117 3,3V to the BRD part of the nmodule board, but when I connect my 12v (+ to the RAW pin and - to the ground) I do not get the regulated voltage at the nmodule shield breakout.
In essence I would like to make my nmodule board work without batteries, by using external power source (usb breakout that is connected to android 12v adapter). This 12v would be regulated by AMS1117 that I solder on BRD part of the board. This way both arduino and radio would get 3,3v and nmodule board would push that voltage to the shield trough vcc and gnd. Maybe I am looking at this the wrong way?
This the quote on your OpenHardware page that I am using as a guidance:
"footprint for an AMS1117 regulator (light blue) if your source voltage is too high for Arduino (> 5.5 V or > 3.3V for 8MHz version). AMS1117 can handle up to 15V and 800mA but it consumes a lot of power, so this regulator should be used only for "wired" power (12V, USB, ...) and never with batteries. If you are using only this regulator, the capacitor of the radio should be enough to keep it stable, but if you want to be on the safe side, you can use the capacitor footprints on the other side of the board: C6/C7 for input C8/C9 for output."
I managed to make my double AAA version to work without problems and kudos for great work!
Thanks alot!
-
@zmatokan Luckily NCA78 has a really good track record of picking low priced parts that are nonetheless really good parts. If worse came to worst, that AMS1117's thermal protection would turn the AMS1117 off until it could cool down rather than overheat to the point of destroying itself.
-
@zmatokan ok it's clear now.
So yes you should remove the regulator on the pro-mini, because it's also doing voltage regulation from RAW to VCC and it can't work in parallel with the AMS1117.
Then if you have added ceramic capacitors (one for input, one for output, 1uA each) and connect 12V on RAW and GND you should have 3.3V on VCC. Then you can short JRADIO to send the 3.3V to the radio module.
-
@neverdie thank you for the kind words, but in this case the AMS1117 was not a "selection", it's just the cheap regulator that is used everywhere
-
@nca78 Thanks for the info, Il try it today!
Works like charm!
-
@Nca78 Hi, looks like I am doing something wrong in my last attempts to use your design with 12v external power supply.
I am using:
- Arduino 5v, 16hz
- AMS 1117 5.0V
- 662K XC6206 - 5v to 3.3v voltage regulator for radio
- 10UF-16V CAP for radio
- NRF24L01SMD
As you can see on a picture, I am using a terminal block where i push 12v.
When I connect the power to the terminal, my Voltage regulator get veeery hot and nothing works.
When I connected my FTDI to try to upload a sketch, a capacitor on arduino got fried. You can see it in the next pic.This happened on tree of my boards.
Can you please take a look and try to see where the problem might be?
Thanks alot!
-
587488927515_IMG_3554.jpeg](Uploading 100%)
Hello, I cannot see the picture, I think something went wrong during the upload...
Can you confirm that you didn't solder the jumpers ? Did you solder the input/output capacitors for each regulator on the other side of the board ?
-
@Nca78 Thanks for the quick reply.
I hope you will be able to see the images now:
What jumpers are you referring to?
-
What jumpers are you referring to?
JPOWER and JRDIO, they should be unsoldered if you are using regulators.
I see JRDIO is not soldered, I can't see JPOWER as it's below the AMS1117, but I supposed you didn't solder it.Components seem ok, can you explain the problem ? Do you have 5V at the output of the AMS117 and 3.3V at the output of the XC6206 ?
[edit] those "blob" modules are usually of very poor quality, so if you have the right voltages but can't make a radio connection, they might be the reason...
-
@Nca78 I didn't soldier JPOWER either.
Problem is that when I connect 12v to terminal block, my voltage regulator gets very hot and arduino is just showing red led ad not responding to reset.
If I try to connect FTDI cable to upload a sketch, I got my CAP on arduino fried as you can see in the image.If I try the same thing on simple nmodule (without battery part), it works when I push 12v to RAW and GND.
Maybe the battery pcb part is making problems? Should I soldier C4...C9 on the back of the nmodule pcb?
-
@zmatokan sorry I complained about your missing pictures and didn't notice you had explained the problem in your initial message.
A very hot regulator sounds like a short circuit on it's output. Is the red led on at full level or dimmed ? Can you confirm which regulator is getting very hot ?
Burnt tantalum capacitor is either voltage higher than rated voltage or reverse polarity. This capacitor is I think connected between RAW and GND, so I don't see how this could happen, did you have 12V on terminal block when you connected the FTDI ?For the source of the short circuit (can you check resistance between VCC and GND, and radio VCC and GND ? Not a good idea to do that usually but it will easily confirm the problem here) I have no idea. I don't think it comes from the "power/battery" part of the board, it's pretty basic and it would short RAW not VCC. You could have a problem with radio footprint (but if it's the same module on the non 12V powered board, it's not the reason), or a short between some via on the radio module with the second radio footprint that is below it (red color on picture below)
You should have at least one capacitor for each couple of footprint for input (C6/C7) and output (C8/C9) of the AMS1117. It's not what is causing the problem now, but it will make the power more stable.
-
@Nca78 Thanks a lot for a quick and detailed response.
I tried last night with the regular nmodule pcb (without battery part) and that one didn't work either (seems like the ones that were working before were connected to 5v power supply, not 12v).
Arduino led is at full level and radio is not connecting.
Please confirm that you see this picture:
Should this pads be connected like this? C7 and C6 are connected, not sure if its the problem with the manufacturing or is it meant to be connected?
Another question is: should I connect pads in YELLOW or RED direction? (probably stupid question)
So far I connected them in yellow direction C7->C7
Could this be connected with the problem?If this 12v does not work out, do you have any other advice?
What I want to do is to use your design without batteries.
It is very small and will fit into a wall socket where I would connect it to some DC power supply.
This DC powersupply will be converted from 220V AC to 12V or maybe 5v.
If I use 5v powersupply, can I still connect 3,3v arduino and sensors to it and how would be the best way?Thanks a lot!
-
@zmatokan yellow arrow is the right way. Connections between C6/C7 and C8/C9 is normal, I doubled the footprint but you can put only one capacitor on each of the pair of footprints, just make sure the values match the data sheet.
12V might be too much if you have really cheap AMS1117 clones, but I have no problem with mine (I have a nmodule with the DC Fan/PWM shield running on 12V and it's been controlling the 12V fan for 2 years without problem).
You can use a 5V power supply, and use a 3.3V AMS1117 for board, radio and sensors. That's what I do usually, a 8MHz arduino is enough for most sensor uses, 16MHz is only needed if you have a demanding user interface like a color LCD or some complicated calculations, but in that case it's a better idea to switch to ARM microcontrollers.
So solution would be 5V source, 3.3V AMS1117, and no regulator for radio.
Have you tried to unsolder the radio on one of the non-working module to see if you can at least program/run the arduino ? In that case it would narrow down the problem to the radio modules.
Also, checking the voltage output of both of the regulators would help.
-
@Nca78 Thanks! I'l check what you suggested.
If I would use:
- 5v power supply
- 5v arduino
- 5v motion sensor
i would need to
- remove onboard arduino voltage regulator
- connect RAW and GND to the 5v powersupply
- add radio volt regulator and capacitor
- soldier JPOWER
And if i use:
5v power supply
3,3v arduino
3v sensori would need to:
- remove onboard arduino voltage regulator
- connect RAW and GND to the 5v powersupply
- add 3.3V AMS1117
- add radio capacitor
- soldier JRADIO
Thanks man!
-
If I would use:
- 5v power supply
- 5v arduino
- 5v motion sensor
i would need to
- remove onboard arduino voltage regulator
- connect RAW and GND to the 5v powersupply
- add radio volt regulator and capacitor
- soldier JPOWER
Yes. If your sensor can work with the voltage drop of the arduino regulator (I think yes), you can also keep it and leave JPOWER open. Less risky and you might have a "cleaner" power for the motion sensor.
And if i use:
5v power supply
3,3v arduino
3v sensori would need to:
- remove onboard arduino voltage regulator
- connect RAW and GND to the 5v powersupply
- add 3.3V AMS1117
- add radio capacitor
- soldier JRADIO
No, with a normal SMD radio the onboard regulator of the promini will be enough to supply power to board + radio + i2C sensors. So keep the arduino regulator, don't add an AMS1117, leave JPOWER opened, solder JRADIO.
-
Hi there! In these days I got some boards from my drawer - I spare quite a lot, I ordered 10 panelized one, so I have 40 NModules!
4 sensors are yet running on battery (2 on CR2032 and 2 with with 2xAA). The fifth module had an accident and I need to program it via SPI. is it safe to flash it with the antenna still soldered?
-
Hi there! In these days I got some boards from my drawer - I spare quite a lot, I ordered 10 panelized one, so I have 40 NModules!
4 sensors are yet running on battery (2 on CR2032 and 2 with with 2xAA). The fifth module had an accident and I need to program it via SPI. is it safe to flash it with the antenna still soldered?Haha that's a lot of boards. May I know what the accident was ? There was a case of a nmodule having a shortcut when manipulated, is it something similar ?
The radio SPI pins can handle 5V but not it's power supply. So as you have no regulator on radio for these boards, I see 3 choices :- best one = use a programmer running at 3.3V and you can power the board & radio with it. 100% safe. You can do this with the ArduinoISP sketch, a 3.3V pro mini and a ftdi adapter.
- if you only have a 5V powered programmer, power the board separately and connect only the SPI pins with the 5V programmer. But this is out of spec as the voltage on SPI pins will be higher than VCC + 0.5V
- open the JRDIO jumper so that the radio is not connected to VCC and use 5V programmer for SPI pins + power supply of the board. In that case to respect the datasheet of NRF24 you need to supply separately at least 3V to VCC radio, else you are in the same situation than point 2, but with the radio and that is I think a worse situation so in that case solution 2. is safer.
-
Haha that's a lot of boards. May I know what the accident was ? There was a case of a nmodule having a shortcut when manipulated, is it something similar ?
Oh, easy! I already had soldered TX/RX pins and the angled ones (towards the atmega). I decide to take them off and reverse the angled... Iron's temperature was quite high... Some tracks got as bright as old 100W bulbs filament!
The radio SPI pins can handle 5V but not it's power supply. So as you have no regulator on radio for these boards, I see 3 choices :
- best one = use a programmer running at 3.3V and you can power the board & radio with it. 100% safe. You can do this with the ArduinoISP sketch, a 3.3V pro mini and a ftdi adapter.
- if you only have a 5V powered programmer, power the board separately and connect only the SPI pins with the 5V programmer. But this is out of spec as the voltage on SPI pins will be higher than VCC + 0.5V
- open the JRDIO jumper so that the radio is not connected to VCC and use 5V programmer for SPI pins + power supply of the board. In that case to respect the datasheet of NRF24 you need to supply separately at least 3V to VCC radio, else you are in the same situation than point 2, but with the radio and that is I think a worse situation so in that case solution 2. is safer.
I'm yet programming it with ArduinoISP on a genuine UNO, so I'm safe. I'll solder the SMD antenna ASAP, the TH one isn't bearable once you see how slim the node gets with your PCB!
-
Ok, just for record: be very very very very very carefull when desoldering the regulator+led+resistance. Do it before soldering the ping legs on module: I had a pair of nodes, correctly running, beatyfully soldered, legs trimmed... and darn, dunno what I did on tracks, they are not powering up anymore.
Luckily I could desolder the antenna from under the PCB and stick on another (the first I told) and put the other as spare.Oh, I love DIY when I fix my errors!
{update: one sensor died yesterday. Maybe my Minis are too cheap? }
-
@Nca78 Thanks man! I managed to make it work. Seems like the problem was with radio modules. Now it works fine!
-
@Nca78 Thanks man! I managed to make it work. Seems like the problem was with radio modules. Now it works fine!
Happy to hear that, thank you for the feedback !
-
@Nca78 Are you still working on this pcbs? i think it would be great to add a version that supports HiLink 220ac->5dc module on powerboard.
-
@Nca78 Are you still working on this pcbs? i think it would be great to add a version that supports HiLink 220ac->5dc module on powerboard.
No I'm not working on NModules anymore, I have a few old nodes using atmega/nrf24 but I switched to NRF5 for "basic" nodes now, and to ESP32 for more "advanced" stuff.
NModule was designed for beginner and simple/riskless use, so I don't think adding high voltage option is a great idea, it's better to use an external power supply and connect the output to the powerboard.