Recommendation for IC

Hi,

I intend to make a compact device which runs on a 3.7 volts Li-Po battery which is charged by a solar panel. A NRF24 has to be connected to it.

The device has to switch on led's connected to it when it receives a particular rf signal.

I intend to design a PCB for it because I want to make it as compact as possible.

I need an IC that can work at 3.7 V Power supply and can be programmed with arduino for my project.

Please suggest a IC that can be used for my project.

Thanks for your help

ATTINY85, ATMEGA328

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.

...R

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.

ATTINY85, ATMEGA328

Can you please tell which is better for my project?

Can I use ATMEGA328P for my project?

Thanks

shubham2003:
Can you please tell which is better for my project?

Can I use ATMEGA328P for my project?

I can't answer that as you have given no details of the project.

Have you studied the manufacturer's datasheets for the two microprocessors so that you are clear about the differences between them?

...R

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.

Have you studied the manufacturer's datasheets for the two microprocessors so that you are clear about the differences between them?

I had studied But I couldn't figure out which is better for my project.

Please help

shubham2003:
I had studied But I couldn't figure out which is better for my project.

You seem to have missed the first part of my Reply #5 - the important part.

...R

@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?

Thanks

This charger from Adafruit may be just what you need to complete the project.

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?

Thanks for you help

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.

Tom... :slight_smile:

Thanks everyone for your help and suggestions.

I have two questions.

Can an NRF24L01+PA+LNA transmit to an NRF24L01+?

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?

Thanks

If you tried to make something work then you ‘must’ show what you tried i.e. if you expect any help.

You know the drill:

Show us a good schematic of your circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.

Use CTRL T to format your code.
Attach your ‘complete’ sketch between code tags
[code]Paste your sketch here[/code]

Time for you to put the effort in and supply the information people need to be able to effectively help you.

The answer to both of your questions is Yes.

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.

As per your advice, I tried the connection test program that is provided in post#29 in @robin tutorial.

The connection program successfully prints the ID of the module.

But the SimpleTx and SimpleRx example does not work.

Please help me to figure out the issue.

Thanks

You need to copy and paste the output from the connection test here so we can see that it is working.

Here is the screenshot from my connection test.

and here are the outputs of my simpleTx and SimpleRX tests.

Can someone please help me understand the problem.

Thanks