Page 1 of 1

My first succesful ...

Posted: Sat Nov 25, 2017 7:50 pm
by rsfoto
... creation of a UI with MegunoLink


I know this is nothing fancy and the old dogs will laugh about it but it was a major achievement for me after a few hours of fiddling around and with the help of Phil and his inmense paitnece with me I maged to transmit data from my Arduino to a simple User Interface :shock:

Here the set up with the Arduino. It is a Voltage dicider absed on 2 Photoresistors and limited by a hole through which light falls. According to the position of the hole the voltage is higher or lower and that I am using for a device which will be a guider on the Sun.

Code: Select all

#include <Wire.h>
#include <MegunoLink.h>

InterfacePanel FR_ui;

float volt;

void leerFR()
  volt = analogRead(A0);

void setup()


void loop()

  volt = volt * 4.828;
FR_megunolink.JPG (110.42 KiB) Viewed 36461 times
IMG_2686_C1_ML.jpg (188.64 KiB) Viewed 36461 times
IMG_2687_C1_ML.jpg (204.47 KiB) Viewed 36461 times

Re: My first succesful ...

Posted: Sat Nov 25, 2017 11:53 pm
by philr
Nice work! Thanks for posting your first successful project. If anyone else wants to modify the interface panel from their Arduino check out our Arduino example called SendToMLP.ino
The arduino program is included in our library and can be found at github ... dToMLP.ino

The corresponding MegunoLink interface ... dToMLP.mlx

Instructions are also available in our documenatation ... ace-panel/