User Tools

Site Tools


record_temperature_from_lexibook_asm30_sensor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
record_temperature_from_lexibook_asm30_sensor [2016/04/02 12:11]
sgripon [Assembly]
record_temperature_from_lexibook_asm30_sensor [2016/04/04 13:24] (current)
sgripon [The arduino sketch]
Line 13: Line 13:
 ===== Assembly ===== ===== Assembly =====
  
-It is very simple. Just connect the RF 433 receiver like this:{{ :​arduino-rf433_receiver_bb.png?​250|}}+It is very simple. Just connect the RF 433 receiver like this:
   * GND to Arduino pin GND   * GND to Arduino pin GND
   * VCC to Arduino pin 5V   * VCC to Arduino pin 5V
Line 20: Line 20:
 Then I suppose you have the Arduino connected with a USB cable to a PC running the Arduino development environment. Then I suppose you have the Arduino connected with a USB cable to a PC running the Arduino development environment.
  
 +{{ :​arduino-rf433_receiver_bb.png?​300 |}}
 ===== Reverse engineering Lexibook ASM30 temperature sensor ===== ===== Reverse engineering Lexibook ASM30 temperature sensor =====
  
Line 45: Line 46:
 The following sketch reads the temperature and outputs to the serial line in JSON format. In this sketch, I use RFControl library as is, so it is not very optimized for my needs. However, for now it works and it is enough! The following sketch reads the temperature and outputs to the serial line in JSON format. In this sketch, I use RFControl library as is, so it is not very optimized for my needs. However, for now it works and it is enough!
  
-<code c++>+<file c++ SmartHomeBox_sgripon.ino>
 #include <​RFControl.h>​ #include <​RFControl.h>​
  
Line 68: Line 69:
     Serial.print(",​ \"​channel\":​ ");     Serial.print(",​ \"​channel\":​ ");
     Serial.print(channel);​     Serial.print(channel);​
-    Serial.print("​ }\r\n");+    Serial.print("​ }\n");
 } }
  
Line 129: Line 130:
   printData(); ​   printData(); ​
 } }
-</code>+</file>
 ===== Next Step ===== ===== Next Step =====
  
-Next step is to be able to get the temperature using a raspberry ​pi connected to the arduino and display it in domoticz.+  * [[add_temperature_sensor_in_domoticz|Add ​temperature ​sensor in Domoticz]] ​using a respberry ​pi.
  
 ===== References ===== ===== References =====
record_temperature_from_lexibook_asm30_sensor.1459591913.txt.gz ยท Last modified: 2016/04/02 12:11 by sgripon