Skip to main content

Posts

Showing posts with the label open sesame air

finally got around to it (nrf24l0+ and servo)

On a previous post , I used the nrf24l01+ wireless chip to communicate between the Raspberry Pi and an Arduino, but only got lights to turn on. I remember being confused as to why servos would not work, and somewhat left it there. I started messing around with it again, and I am concluding that it might have been just a power issue. Here is the servo moving properly: The Arduino is on the ground due to the short length of the wires powering them. Just as a recap, what is happening is: - a C++ program using the RF24 library is compiled in the Raspberry Pi (connected to an nrf24l01+ chip) to broadcast a message. When executed, it will broadcast the message. - the Arduino (connected to another nrf24l01+ chip) programmed to receive messages receives the message, and upon receipt sends a signal to an Arduino that is wired to the servo to move the servo. Two separate Arduinos are used, as it seems that the servo library and the RF24 library do not seem to run properly toget...

quick update

Got to work on this more yesterday. Tinkered with the Arduino code for both the RF receiver and the servo controller as well the the Raspberry Pi side of the code.  There's still issues from time to time during the sending of messages, and I do think it's something in the Raspberry Pi's code side. I'll have to start digging into the RF library to see what's going on.  Also, when the message is sent, the servo seems to be a bit inconsistent in behavior. I'm starting to think it's a power-based issue. As for now, the device is still too unstable to replace current system.

finally getting back to it

Things went by pretty quickly this month, and I was not able to play around with this project much.  I did tinker with it every now and then, but I was never able to get myself past the residing issue of compiling the RF library in the Raspberry Pi. It seemed people are generally interested in the project linked in the previous post, as people were actively posting comments on it.  Couple of days ago a user posted a solution to the compile issues (changes to method names and usage of pre-defined values for parameters), and I thought I should try following it to see if it works.  The code indeed compiled, and I was able to change it a little more to be more fitting to my project.  On the Arduino side, it might be a premature assumption, but it seemed like the Arduino was unable to handle messaging through the RF and controlling the servo at the same time. My assumption is that the inability to control them in separate threads is causing some timin...

fun with the nrf24l01+

What I am trying to do nowadays is to get the "open sesame" system to work wireless. The servo that opens the door is currently connected directly to the Raspberry Pi, which limits the use of the Raspberry Pi for just this purpose, and I was starting to want to have it around for more things. The NRF24l01+ is a neat, cheap little device I found in the internet that gives devices a means to communicate with each other wireless through a 2.4 GHz network. I've been looking at this site for a good sample to follow and build upon. Currently, I have not been able to build the Raspberry Pi source given from that site on my own, but someone in the comments managed to upload a working, built binary for it, which I have been using so far for testing. I'll eventually have to be able to build it on my own, as I'll probably have to change the code for my purposes. I've been playing around with it, and I've been able to make lights blink. However, everything ...

if it ain't broke, don't fix it, but who says don't make it better?

back again. this time, I will be giving the "open sesame" project an upgrade. here's a preview: