How to use force/preassure sensor to send data to domoticz?
-
I want to add a FSR preassure sensor to domoticz using mysensors. But how would a simple sketch that only sends raw preassure value to domotics every sec look like? I guess the Preassure sensor is only some sort of resistor where the resistance changes depenfing on the preassure.
But are there any kind of preassure variable that can be sent to domoticz or how should I solve this?
The original arduino preassure sketch looks like:
int FSR_Pin = A0; //analog pin 0 void setup(){ Serial.begin(9600); } void loop(){ int FSRReading = analogRead(FSR_Pin); Serial.println(FSRReading); delay(250); //just here to slow down the output for easier reading }
1 out of 1
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Some sensors permanently fail after one/two years
Troubleshooting • 25 Jul 2024, 17:17 • Kokosnoot 25 Jul 2024, 17:17 -
Raspberry Pi 5: invalid GPIO 9
Troubleshooting • 27 Aug 2024, 13:20 • igo 27 Aug 2024, 13:20 -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28 -
Arduino nano and Uno in same My sensors network with NRF24L01+
Troubleshooting • 26 Jul 2024, 10:30 • DIY89 27 Aug 2024, 09:59