MonaLisa Arduino Communications - Status Indicator

Hi Folks,

I've been working to try and make an LCD Status indicator using a Mona Lisa, Arduino and an LCD display. I wanted a way to see which sensor had gone off by having it's name displayed on an LCD panel. I have managed to achieve this as can be seen below:-

The message on the first line tells me that the Upstairs PIR was triggered at 21:38. So Far So Good. Now I want to be able to send some information back to the Hub from the Arduino and I have managed to do that also as you can see below:-

The string 'custom1_133' is my message back from the Arduino/Mona Lisa. This is where I run out of stream though. I cant figure out how to use this string. I'd like to get it into Rules Engine but cant figure out a way to get it there. I'm a bit of a Hubitat novice and despite hours searching the forum threads I cant figure this bit out. I've never done Groovy Programming and am fearing I might have to learn another new language just to get at this string of data but I'm hope there is a way to get it into rules engine and work with it there.

Any suggestions would be greatly appreciated.

BTW. for anyone who is interested. I sent the time from the Hub to the Arduino as part of the data by using a custom variable and setting the time to it. The Arduino does not have an RTC (Real time clock) as standard.

You can send a string of data to the Mona Lisa through Rules Engine with an action setup as follows:-

Don't ask me why you have to set it up as a switch in order to send it a string of data but it works.

@matt1 Hi Matt, I just noticed in another thread you had attempted something similar and managed to grab the string returned to the hub by creating a child device. Do you have any more details on exactly what you did there?

Cheers,

Mark.

Short note just to write MonaLisa. I recall that the name specifically omitted the space to make it easier to search.

I love seeing DIY projects like this. Cheers!

Thanks Hatallica, I've changed the title to MonaLisa now.

1 Like

I am working on an automation project with four 0-5V analog input devices feeding my hubitat and plan to use the Monalisa as my interface. I have the Monalisa connected and being controlled in Hubitat. I am now working on the wiring diagram. Can anyone help with the physical connections to this board for analog inputs and discrete outputs?


I have circled the Digital Output connections in RED and the Analog Input connections in BLUE
Just to their right are ample 3.3v power and ground connections to use for your devices.

1 Like

Bear in mind the MonaLisa operates on 3.3v logic so you'll need to use a voltage divider or some other method to limit your inputs since it cannot handle the 0-5V you want to use.
For analog inputs I'd try a voltage divider and for digital IO you can use a logic level shifter like this one TXB0104 Bi-Directional Level Shifter [TXB0104] : ID 1875 : Adafruit Industries, Unique & fun DIY electronics and kits

2 Likes

Thanks for the info. I am using a resistive output level sender (cheap!!) and converting the signal to 0-5V. A 3.3v analog on the MonaLisa and not 5v - I missed that! I will add two resistors as a voltage divider to get the 3.3V signal. This is the converter I plan to use to get the 0-5-volts from the resistive signal. Amazon.com. I have the MonaLisa and should get the level sender and converter next week to start bench testing. Thanks again!