|
Forum Index : Microcontroller and PC projects : 433MHz ASK/OOK modules
| Author | Message | ||||
| Phil23 Guru Joined: 27/03/2016 Location: AustraliaPosts: 1667 |
Just wondering if anyone has any working experience with these modules mentioned in another thread. I know they are supposed to be capable of receiving data from many common wireless devices, typically weather monitors. In my case I want to monitor data from a Clipsal Centameter power monitor. Basically it comes from information in these links. Freetronics power monitoring, and CentaReveiver on GitHub. Have the actual Freetronics module on a Uno ATT, but it's not receiving anything. Looking at the Arduino code (that's a bit deep for me), there are plenty of comments indicating that it's very much in the test state & not really finished & with quite a few issues. My plan, had it worked was to simply change the format of the output string & connect that either directly to a Micromite, or pipe it there with another HC-12. Was going to replace the UNO with a Nano for a small final device. Seeing as it won't work straight off the cuff, I'd rather pursue an MM basic solution than try & understand & debug the Arduino Code. Thanks Phil. |
||||
frackers![]() Newbie Joined: 06/11/2009 Location: New ZealandPosts: 23 |
I've used them to replace the dead bits of a LaCrosse weather station. I started with the TX end, as it was the outside unit that got too close to a lightning strike and then knocked up the receiver to match it. I have example code for Atmel AVR (Arduino style hardware), written in 'C' (not the bastardised C++ the Arduino IDE uses) and you can find it here I recently re-hashed the code to use a DHT22 or a BME280 rather than the 1-wire sensors I started with, I have that stashed somewhere if anyone is interested. I made it all solar powered as well!! The BeRTOS code should run OK on a cheap STM32F103 as well as an AVR (I've used Nano clones for my experiments as a plugin module). Robin down under - or are you up over |
||||
| Phil23 Guru Joined: 27/03/2016 Location: AustraliaPosts: 1667 |
Thanks, I just want to monitor the data already being transmitted, but from what I can see in the code, it's not actually reading a data stream at XXXX Baud. Looks more like it's sampling a digital input & deriving the bit from that. The code loses me pretty quickly, & not sure at what point to try and start to debug it. Phil. |
||||
| HankR Senior Member Joined: 02/01/2015 Location: United StatesPosts: 209 |
Phil, Yes, working with an Arduino I both intercepted the code from a very inexpensive temp. monitor and created my own transmitter encoder to send the same type of protocol which was successfully decoded by the commercial monitor. (Accurite brand) Transmitting any of these codes is easier than receiving them. I think it would be wise for you check that your RX module is actually sending out a stream of received encoded data. It outputs a chaotic stream of digital data due to noise alone (no RF signal) so mere activity on the RX pin means nothing. Do you have an oscilloscope? If you look into it a little you'll see that indeed is what happens. The modulation is often a pulse length system where the two symbols are a long pulse and a short pulse, but for a 0 or 1 there's always pulse activity. Another way is to use Manchester encoding. Practical Arduino tells what kind of modulation protocol the your unit uses. I read it quite a while ago and can't recall. Maybe Frackers can. Hank |
||||
| GoodToGo! Senior Member Joined: 23/04/2017 Location: AustraliaPosts: 188 |
I tried these 433MHZ ASK/OOK modules once, then turfed them when I found the gloriousness that is the HC12's. Now if only I can get these damn NRF24L01+'s to talk to each other....... GTG! ...... Don't worry mate, it'll be GoodToGo! |
||||
| Alastair Senior Member Joined: 03/04/2017 Location: AustraliaPosts: 161 |
@GTG - why are you moving up to 2.4GHz? I assume it is a short range application otherwise surely the distance will drop. I have only just started using the HC-12 and have been impressed at how easy they are to implement. As you saw in another thread I have some concerns re the emissions and general 'pollution' but am planning to do some playing to really see what is happening. With encouragement from Manuka I am going down the SDR spectrum analyser pathway. Another little project to do. cheers Cheers, Alastair |
||||
frackers![]() Newbie Joined: 06/11/2009 Location: New ZealandPosts: 23 |
Ah - now there is a useful device!! I knocked up an update to my "open windows on tunnel house with windscreen wiper motors" project to send the temperature and status info back to the house as a trial of these. The tunnel house end used an Arduino Nano clone and the house end used either an Arduino Nano or a stm32f103 dev board clone (same code runs on both !!). Both ends have an LCD and 3 buttons and the GUI can be driven either locally or remotely. Using the PA/LNB version with the supplied stubby aerials its quite happy going 100m through 4 walls in the house and into my office with all the wifi and monitor noise going on. This particular project isn't on github yet but the libraries are part of my BeRTOS 'all' branch. Any interest and I'll upload it. Robin down under - or are you up over |
||||
| HankR Senior Member Joined: 02/01/2015 Location: United StatesPosts: 209 |
Robin, When is there not interest by somebody, somewhere? I'm intrigued by the fact that the same code works with both devices although you might be using a few conditional comp. switches to do that. I have an STM board but so far have not jumped through the startup boot hoops and some other necessities. We'll see this when you upload but also curious if you used the Arduino IDE or true C. You've already implied you don't care for the Arduino subset of, and modified, C++. Hank |
||||
frackers![]() Newbie Joined: 06/11/2009 Location: New ZealandPosts: 23 |
Well I got round to it eventually!! My tunnel house vent controller project that uses the NRF24L01 is on github now, with the instructions (that is what took the time!!). It runs on an AVR (I'm using a Arduino Nano clone) or on a minimal stm32f103 dev board. Grab from the tunhouse repository. It uses my fork of BeRTOS to provide all the libraries (1-wire, terminal emulator, nrf24l01 etc). If anyone manages to wade their way through it I'd be interested in your comments!! Robin down under - or are you up over |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |