Millumin with Arduino and a HC-SR04 Ultrasonic Distance Sensor
Hej,
I have successfully been been testing Millumin with Arduino and a potentiometer and switches for various interactive inputs, auto-coded/programmed with Millumin. I like to maintain the uploaded auto-coded/programmed settings I have now.
I now like to add a HC-SR04 Ultrasonic Distance Sensor, and use the returned distance value as an interactive input in Millumin.
The HC-SR04 Ultrasonic Distance Sensor has a transmitter and a receiver. Codes for Arduino with the a HC-SR04 Ultrasonic Distance Sensor can be found at:
I like to know if I can upload the code (and the NewPing library - see further down in the tutorial) via the Arduino Desktop IDE, and then "autoprogram" the digital output, ex D3 as " IN : sensor (such as infrared sensor or potentiometer)" for Millumin to read a value from the HC-SR04 Ultrasonic Distance Sensor?
Thank you.
Arthur
Comments
need to program your Arduino yourself. Fortenatly, we created a library
to ease communication between Arduino and Millumin, so you only have to
support your sensor. More info in last section of this tutorial.
Hi Arthur,
I was wondering if you found a way to program and use the HC-SR04 Ultrasonic Distance Sensor.
I just got one here, and I'm trying to find a way to make it work.
Cheers!
Luis