Answer the question
In order to leave comments, you need to log in
Will the ATMEL ATTINY13A microcontroller be enough for the NRF24L01 bundle and the relay / sensor?
Will the ATMEL ATTINY13A microcontroller be enough for the NRF24L01 bundle and the relay / sensor? If not, what is the most budget and miniature option? Please also write if looseness is required. (I really want to order in China now, and figure it out after the session, when it comes)
Answer the question
In order to leave comments, you need to log in
Interested in budget or the best in terms of price / simplicity? If you buy an arduino nano for $ 10, for example, you will only need a minimum of looseness for the relay (diode, optocoupler, transistor, but you can do without them if you are brave).
The switching circuit is actually here on the Atmega8.
Since this is a banal SPI, there are no requirements for the MK.
Arduins don’t roll here - you need to poison the scarf yourself.
ps I can't digest nubduins, and I've been crying for STM32 and NXP for a long time.
So it seems that NRF24L01 itself is a SoC. That is, it can be easily programmed_ and therefore no other controllers are required.
I want to clarify the proposed scheme:
ардуинка-NRF24L01 - - - - -nRF-(мк?)-реле
\_ _ _ _ _ nRF-(мк?)-датчик
I did almost the same, only I took tinka 25, because I needed two timers. Otherwise, they are similar, but the location of the ports on the pins is also different.
But attiny25/15/13 may well work with NRF24L01. At a minimum, legs are needed: MISO, MOSI, CLK and CSN. There remains at least one port (or two, if you turn off the reset) to connect something.
I have only one doubt remains, is there enough program memory to initialize the module? Indeed, in tini-13 there are only 512 program cells. If it's enough, then to the butt. It will be a shame if the program does not fit into memory for just a few cells. Therefore, it is better to immediately take with a large volume, such as tini45, 85 ...
But a prototype can also be created on mega8, mega16 and then it will not be difficult to transfer the program to tini13.
I bought ATtiny85 in smd cases 10pcs for $9, they work great with 2 AA batteries, they are programmed on ARDUINO, 8 kb of memory, 3 pins are enough to connect ( hackaday.com/2014/02/16/nrf24l01-using-3 -attiny85-... If you just need to turn on the relay, then with the RF24 library, the code size will be < 6kB (sketch for UNO, for tini, you will most likely need another library)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question