Hey there,
I want to introduce you my climate sensor project.
It is open source so you can find everything on GitHub.
Please let me know if you like it.
-
Smart-ClimaSens
-
Great!
I see in an example you have a lot of these sensors. Are they all in reach of the Raspberry to receive the bluetooth data?
And can I also use a BME380?
Can you add a rainsensor (counting pulses)?Thanks in advance.
-
Thank you very much for sharing your project with us!
The documentation is excellent. One thing I noticed is that you project seems to be missing CCLoader.ino. Is this already included with the Arduino IDE or is part of the CCLoader project (see link below)? If the latter is the case you may want to add reference to that project as part of the docs.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Yes, all sensors are in range of the Raspberry.
I have modified a bluetooth dongle for this by replacing the PCB-Antenna with a short wire.
I could add this workaround to the documentation.You mean BMP380?
This module is not implemented jet, but should be no problem to add.Which kind of rainsensor are you planning to use?
A simple way to use other sensors could be using the “contact” if your sensor has an output like on/off. -
@mwittig thank you for the advice.
The CCLoader.ino is stored here: https://github.com/FROeHlyEisvogel/Smart-ClimaSens/tree/development/Development/Development-Tools/Programming software/CCLoader-masterIt is referenced in the Programming.pdf.
Referencing to the main GitHub project is also a good idea. -
@froehlyeisvogel Thank you for the pointer. I have missed this when I glanced over the documentation. You’re right, it is mentioned on the first page of the Programming guide.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Although the documentation look realy nice to me I still don’t understand how to program the BLE module.
I read the following:
But that doesnt make sense to me.i know, its my lack of knowledge so a little help I realy would appreciate.
I installed Arduino IDE and than I got stuck. Which files do I have to download, where do I put them and what do I do in the Arduino software.
Thanks in advance…
-
Open the link from the text:
https://github.com/FROeHlyEisvogel/Smart-ClimaSens/tree/development/Development/Development-Tools/Programming software/CCLoader-master/Arduino/CCLoaderDownload the file “CCLoader.ino” and open it with Arduino IDE.
Now upload the Program to the Arduino board.
Ths program will convert your Arduino board into a programmer for the BLE module.Once uploaded the sketch you can continue by connection the BLE module with the Arduino and programming the BLE software.
If you still have issues, please ask again.
-
Another noob question…
I have an arduino leonardo board. Can i connect the BLE module to it for the programming ? can someone help with the wiring ?Edit: With a little search on google i found out that i can. One question still remains.
How to wire the module to the board ? -
You either use the same wiring like Arduino Uno or redefine it in the sketch:
int DD = 6;
int DC = 5;
int RESET = 4; -
I programmed a JDY 08 conform the instructions.
Then I installed the plugin in Pimatic.My smartphone discovers the a bluetooth device JDY-08 but Pimatic doesn’t.
hcitool scan shows serveral bluetooth devices but not the JDY-08.
The raspberry pi and the JDY-08 are as close as 2 meters…
What is going wrong?
Thanks in advance
-
Which Raspberry Pi are you using?
Do you use an extra bluetooth dongle? It is recommented for good results.
Your description sounds like your bluetooth adapter does not support bluetooth low energy?
This is supported by bluetooth version 4.0 and above. -
A Raspberry pi 3 with an USB bluetooth dongle.
I am pretty sure its above version 4.0… -
I have this dongle:
The specifications (if they are true) are:
- Mini USB Bluetooth 4.0 adapter met hoge snelheid tot 3Mbps.
- Bluetooth lage energie Radio USB Dongle.
- Dual-mode Bluetooth transfer.
- Low-power selecteerbaar 1.2 3.6 VI/O.
- Supporting Bluetooth voice data.
- Supporting meerdere talen.
- Compatible met Bluetooth v1.2/2.0/2.1/3.0/4.0
Is this a right dongle for this purpose?
sudo hcitool lescan give now the following output:
LE Scan …
34:03:DE:43:85:69 (unknown)
34:03:DE:43:85:69 JDY-08
57:E3:3E:99:C0:6D (unknown)But the climat-sensor plugin doesn’t find anything when I discover devices…
-
It doesn’t look to me like you have programmed the JDY-08 with the SmartClima-Sens firmware.
It should appear as “ClimaSens” otherwise the plugin will not detect it. -
I can confirm that “ClimaSens” is the name that appears in discovery.
FROeHlyEisvogel is right !
Something went wrong while programming the BLE software -
Ok, programming went realy quick. Probably something went wrong, I’ll try again …
-
I have programmed the BLE again, from the command line with ccloader.exe:
So I would think it was successfull. But I still see SFB75 in stead of ClimSens.Do I still do it wrong?
-
I don’t have a clue what’s wrong with your device.
It looks like every thing passed as expected.
Can you make a picture of your device?
And are you really sure the device you are scanning is the device you have programmed? -
Hi,
I start to wonder if uploading tt the bluetooth device was succesfully.
First you have to upload ccloader.ino to the Arduino.But after compiling i get the following warnings:
Could this be the problem? And how should i solve that?