tag:blogger.com,1999:blog-8392959180134867028.post7809912778028612147..comments2024-03-22T22:41:33.836+01:00Comments on Learn on the fly : A simple RF remote with code hopping or rolling code on Arduino and AVR using cheap 433mhz rf modulesRiYahttp://www.blogger.com/profile/00155693473706220430noreply@blogger.comBlogger34125tag:blogger.com,1999:blog-8392959180134867028.post-69905469782489513602021-05-03T00:30:54.978+02:002021-05-03T00:30:54.978+02:00Hello there. Great work ! Is it possible to run th...Hello there. Great work ! Is it possible to run that code on esp32 ? <br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-91857926485530037712021-03-12T09:45:16.490+01:002021-03-12T09:45:16.490+01:00Thanks for the code
How to add Real time clock for...Thanks for the code<br />How to add Real time clock for more security?Hariharanhttps://www.blogger.com/profile/05969461341480925084noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-88298528986477538542020-09-11T02:33:03.384+02:002020-09-11T02:33:03.384+02:00Hi, Do you have any example about what and where y...Hi, Do you have any example about what and where you mean "realtime clock and a time stamp". Thanks anyway. Great post.Paulo Coutinhohttps://www.blogger.com/profile/12104016377463579566noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-17875490892390970862020-04-06T18:57:38.638+02:002020-04-06T18:57:38.638+02:00hello my friend
please help me
I have error cod...hello my friend <br />please help me <br /> I have error code<br />'aes128_dec_single' was not declared in this scope Anonymoushttps://www.blogger.com/profile/16383611814032569692noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-41740862366114878732019-04-27T15:57:21.901+02:002019-04-27T15:57:21.901+02:00module name with lcd please? thank you very muchmodule name with lcd please? thank you very muchFranciscohttps://www.blogger.com/profile/13817867901166915678noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-34156509184171711312018-09-07T11:26:43.782+02:002018-09-07T11:26:43.782+02:00how download avr/eeprom.hhow download avr/eeprom.hAnonymoushttps://www.blogger.com/profile/03633201085035686106noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-75994556821044232742017-12-30T15:11:59.414+01:002017-12-30T15:11:59.414+01:00Thanks Vince for the feedback and New year greetin...Thanks Vince for the feedback and New year greetings! Seems a long time since i was experimenting with this and found some issues as you indicated. The idea while making the post was just to share the concept and the key counter in the transmitter is buggy as it is never saved and always resets in the loop (OMG!)<br /><br />Updated the transmitter code above ( i haven't tested it, all my toysRiYahttps://www.blogger.com/profile/00155693473706220430noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-16866453999803676142017-12-30T09:44:45.992+01:002017-12-30T09:44:45.992+01:00Can you tell me how to make the sender remember ke...Can you tell me how to make the sender remember key_counter?<br />I am not so familiar with eprom write.<br /><br />My problem is that if I disconnect sender from power I will need new pairing because the sender starts with the SAME counter every reboot, while the receiver remembers the last counter.<br />In short: receiver writes counter to eprom, sender not.<br /><br />besides that your code Vincenoreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-71212073685536953172017-03-07T10:13:30.307+01:002017-03-07T10:13:30.307+01:00It is a reverse engineering problem. It may or may...It is a reverse engineering problem. It may or may not be possible based on the type of remote, pairing algorithm, key exchange etc. Possible routes are using an rtlsdr to analyse all traffics during a pairing process. A secure remote should use an encryption key during pairing ( the one i shown above is missing it )RiYahttps://www.blogger.com/profile/00155693473706220430noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-71467173265093037402017-03-07T09:47:33.261+01:002017-03-07T09:47:33.261+01:00Hi RiYa, thanks for your code!
I have a remote wi...Hi RiYa, thanks for your code!<br /><br />I have a remote with two channels that use rolling code. One channel is used to open a door gate. I would use other channel to open another door. Is it possible accomplish it using Arduino instead to buy manufacturer's original receiver?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-24858143890749755442017-02-17T08:55:53.061+01:002017-02-17T08:55:53.061+01:00LCD needs only 6 pins LiquidCrystal(rs, enable, d4...LCD needs only 6 pins LiquidCrystal(rs, enable, d4, d5, d6, d7) , and you can use any of the 6 pins on the nano, but make sure to set appropriate pin number in the call to LiquidCrystal(x,x,x,x..) function. In addition LCD needs a power (vcc) and ground connection. Additionally, wire a 10k pot to +5V and GND, with it's wiper (output) to LCD screens VO pin (pin3). A 220 ohm resistor is used toRiYahttps://www.blogger.com/profile/00155693473706220430noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-79958983497871464682017-02-17T06:23:16.004+01:002017-02-17T06:23:16.004+01:00My question is if I have a Arduino Mini, do I have...My question is if I have a Arduino Mini, do I have to connect all pins just like how the LCD module is connected to the UNO, or only a few?Anonymoushttps://www.blogger.com/profile/00947277840985919248noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-77973845750917415102017-02-17T02:42:05.353+01:002017-02-17T02:42:05.353+01:00Riya,
Could you explain the wiring between the LC...Riya,<br /><br />Could you explain the wiring between the LCD module and Arduino? I understand Arduino pins used (8, 9, 4, 5, 6, 7) but how are they connected to the LCD module? How is the module powered?<br /><br />Thanks!Anonymoushttps://www.blogger.com/profile/00947277840985919248noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-7505420929851710392017-02-07T06:15:17.155+01:002017-02-07T06:15:17.155+01:00Press any button on the receiver lcd. It will go t...Press any button on the receiver lcd. It will go to pairing mode and then connect pin 8 on the transmitter to ground.RiYahttps://www.blogger.com/profile/00155693473706220430noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-67151659104636387872017-02-06T20:50:59.785+01:002017-02-06T20:50:59.785+01:00Could you explain how do the parring ? i don't...Could you explain how do the parring ? i don't undersant when i have to disconnect 3,3v and when i have to push button in lcd keypad. Thank youAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-33066600208446515482017-01-31T21:15:51.064+01:002017-01-31T21:15:51.064+01:00Nrf modules are small but a lot of config options ...Nrf modules are small but a lot of config options are there. Try using a clean power (battery) as they are sensitive to noice. Use a clear channel (see the nrf scanner). Make sure the antenna on the pcb is not close to the metal cases or other stuffs. A proper communication link is always needed so that the codes wont be missed (beyond the safety window). I used to get at least 6-10 mtrs range RiYahttps://www.blogger.com/profile/00155693473706220430noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-53904548512777521022017-01-31T21:02:40.197+01:002017-01-31T21:02:40.197+01:00Nrf modules are small but a lot of config options ...Nrf modules are small but a lot of config options are there. Try using a clean power (battery) as they are sensitive to noice. Use a clear channel (see the nrf scanner). Make sure the antenna on the pcb is not close to the metal cases or other stuffs. A proper communication link is always needed so that the codes wont be missed (beyond the safety window). I used to get at least 6-10 mtrs range RiYahttps://www.blogger.com/profile/00155693473706220430noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-5458549529093158112017-01-31T19:32:55.731+01:002017-01-31T19:32:55.731+01:00Thanks for the NRF24L01 examples, Riya! I am able ...Thanks for the NRF24L01 examples, Riya! I am able to build them and see the responses. A couple of observations: first I had to change baud rate to 9600 in sketch1 otherwise the terminal characters would turn into gibberish after a few normal outputs. Second, around 50% of the responses failed even though the sketch2 module is only 3 meters away. As I am trying to build a rolling code remote Anonymoushttps://www.blogger.com/profile/00947277840985919248noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-42367836139410294362017-01-31T06:13:59.328+01:002017-01-31T06:13:59.328+01:00Add seral.print for all lcd messages and use a ser...Add seral.print for all lcd messages and use a serial monitor.RiYahttps://www.blogger.com/profile/00155693473706220430noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-27887693021802136132017-01-31T06:11:15.394+01:002017-01-31T06:11:15.394+01:00Yes, it should work. Just pass the data struct to ...Yes, it should work. Just pass the data struct to nrf instead of virtualwire. RiYahttps://www.blogger.com/profile/00155693473706220430noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-90565119755602336242017-01-31T01:19:37.872+01:002017-01-31T01:19:37.872+01:00Thanks again for the pseudo code... I assume it is...Thanks again for the pseudo code... I assume it is for challenge-response authentication. But if I stick to the AES/one-way rolling code logic in your code above, besides loading the NRF library, anything in particular I should change?Anonymoushttps://www.blogger.com/profile/00947277840985919248noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-18180676830729480682017-01-30T20:35:33.622+01:002017-01-30T20:35:33.622+01:00hi,
thank you for your code,
So i don't have...hi,<br /><br />thank you for your code,<br /><br />So i don't have lcd for receiver so can you explain me how i can do to put the receiver in paring mode.<br /><br />I try to pare the two arduinos without success<br /><br />thank youAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-71762357781440270912017-01-30T09:41:27.732+01:002017-01-30T09:41:27.732+01:00You are welcome!
NRF24l01 is a bit different and ...You are welcome!<br /><br />NRF24l01 is a bit different and much better in some areas. It allows both transmit and receive and hence you could have a challenge-response strategy and better & secure key exchange. So the same code wont work and we need a diffrent one as the rf modules are totally different. The basic wiring of NRF module can be seen at:<br /><br />http://www.riyas.org/2013/12/RiYahttps://www.blogger.com/profile/00155693473706220430noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-41479598158086956032017-01-30T04:28:42.137+01:002017-01-30T04:28:42.137+01:00Riya: thanks for the post! Could you comment on wi...Riya: thanks for the post! Could you comment on wiring for NRF24L01's 8-pin module? Is there a need to change the code?Anonymoushttps://www.blogger.com/profile/00947277840985919248noreply@blogger.comtag:blogger.com,1999:blog-8392959180134867028.post-855604151422530072017-01-27T12:52:17.804+01:002017-01-27T12:52:17.804+01:00You can just encrypt and send your message. The pr...You can just encrypt and send your message. The problem is replay attacks. Instead of rolling counter, you can use a hash of (time stamp+ some secret string). There are several ways with varying degree of security. You can also keep the key in ram and attain the same results (need to use a battery backup) Goodluck with your projects!RiYahttps://www.blogger.com/profile/00155693473706220430noreply@blogger.com