I have used an Attiny84 with an nRF24 powered from a 1S LiPo.
Note that the max voltage for the nRF24 is 3.6v and a fully charged LiPo will be at 4.2v. I use a diode as a simple and compact way to step down the voltage from the LiPo.
Note that you need to run the Attinys and the Atmega 328 at 8MHz (or less) if you are only powering them with 3.7v.
I am running several sensor nodes based on Arduino Pro Minis (ATmega 328) powered by 1s lipos. Powering the sensor and transceiver from digital pins set high only when they need to work. Deep sleep everything most of the time. Avoid any unneccesary LED. Works well.
shubham2003:
Can you please tell which is better for my project?
Can I use ATMEGA328P for my project?
Thanks
I think the best way to develop is to get all the sensors and output pieces together
figure out if you can do everything in 3v3 or 5v
Then get a NANO or UNO or Mini
develop a working project. test it, check it, verify it works as you need it to work.
Then, only then, start to strip away all power hungry parts,
as you reduce the power consumption, you may find that there will be things that have to be replaced with something different.
once you have the lowest power use and are satisfied that it works as you need, then lay out the bits and bobs on a board that will be your final project.use an UNO or NANO
if you make the board before you have it working, there is a strong chance you will need to add something later
the answer to your question " can I use the ATMEGA328P ? "
only you can answer that. I would offer that if you can get your project to work on a mini, then yes. many have created battery power projects with that chip.
as for your requirements :
can run on 3.7, yes
can run NRF24, yes
can turn on LEDs, yes
is it an IC , yes
can you program with Arduino IDE , yes
recommendation :
get a mini, make it work 100%
then, make that board to make it small for your needs.
I believe that some of the board houses will solder on the ATMEGA328P SMD chip for your for a small charge. so tiny is possible.
@shubham2003, you've told us very little about your project - as @Robin2 has said in his post, provide us with more details.
So far, I've extracted the following requirements from your posts:
powered by a 3.7V Li-Po battery
charged by a solar panel
has an nRF24L01 radio module
drive a number of LEDs (quantity unknown)
custom PCB
programmed via Arduino IDE (?)
Do you intend to use an off the shelf Li-Po Solar charger, or design that yourself?
If you are going to use an off the shelf charger, then, if you can live with a 5cm x 5cm PCB, take a look at the Easy/Newbie PCB for MySensors. The basic board takes an Arduino Pro Mini and an nRF24L01 module. You can get the bare PCB from the designer via eBay.
I aim to use 4 LED's as of now (may increase or decrease the number depending upon the overall power consumption).
programmed via Arduino IDE (?)
Yes, Definitely
design that yourself?
If I aim to design it myself, Can you recommend any IC for that purpose?
If you are going to use an off the shelf charger, then, if you can live with a 5cm x 5cm PCB, take a look at the Easy/Newbie PCB for MySensors. The basic board takes an Arduino Pro Mini and an nRF24L01 module. You can get the bare PCB from the designer via eBay.
Thanks for this great piece of information. This is almost what I intend to build. But it doesn't seem to have a solar charging option as I read through the webpage. Does it? How can I use that?
Can someone please recommend any IC for the LiPo charger?
Someone recommended me TP4056. Can I use that?
If you are going to use an off the shelf charger, then, if you can live with a 5cm x 5cm PCB, take a look at the Easy/Newbie PCB for MySensors. The basic board takes an Arduino Pro Mini and an nRF24L01 module. You can get the bare PCB from the designer via eBay.
The page provides a number of gerber files. Can you please tell me which one is perfect for me?
Hi,
Can I suggest you consider a controller that is already on a board with just powersupply, programming and I/O pins.
Your PCB design can then have header pins on your PCB to plug the controller into, this will lessen the job of providing all the components just for the controller chip.
You could also do the same with the NRF module.
A Nano, or a Pro Micro, even a ProMini if you have an FTDI programming cable for the IDE to upload code to it.
and can one transmitter transmit to multiple receivers?
I have started to work on my project by connecting 2 NRF24L01+PA+LNA modules to two Arduino Uno's.
But they don't seem to communicate with each other. I have tested several codes from the internet. I have tried @Robin2 tutorial as well. But none seems to work. I have thoroughly check all wires and connections. Can you please help me figure out the problem?
When starting out with the nRF24L01 devices I would suggest that you begin with the connection test program that is part of the tutorials that @Robin2 provides. It's one of the later posts in the thread.
You need to have this working first before attempting anything else.
It can be rather frustrating when trying out the various different nRF24L01 examples, when they all claim to be working, only to find that yours doesn't work with any of them. When I first started with the nRF24L01, I followed the tutorials that @Robin2 provided. I think it was SimpleTx and SimpleRx and then I was good to go. Make sure that you use the same library that is in the tutorials and that there aren't other libraries installed from your other sources.