Thingshield replacement for arduino over zigbee now available for hubitat

I think it looks in the "current directory". So you want to cd to E:\Matt\Documents\Arduino\ first, then run CCLoader.exe 5 SampleLight_v1.2_butt3reset_ieee.bin 0

Uploading Happiness.......

I'm so rusty I had to look up how to change drives in DOS.

1 Like

As for powering the MonaLisa for updating firmware, the most robust seems to be connecting 3.3V, GND on the Mona Lisa to 5V, GND on the arduino. Yes, it's crazy, but we are already breaking rules by connecting a 5V output pin on the arduino to a 3.3V tolerant pin on the debug header of the MonaLisa. That means it's best NOT to plug it on as a shield. I've updated the "guide".

Success
I now have two Lisa's on my hub.

Sum up what I did for Window 10.
Dust off your DOS commands
Powered the Lisa. 3.3v, GND from Arduino 3.3V, GND.
Wired debug port per directions.
Put the sketch on the Arduino then close the IDE (it ties up the port).
CCLoader and bin file in same directory.
cd to that directory.
Run CCLoader from command line with exe, com#, bin file, and Arduino type

e:\Matt\Documents\Arduino>CCLoader.exe 5 SampleLight_v1.2_butt3reset_ieee.bin 0
Copyright (c) 2013 RedBearLab.com
CCLoader.exe version 0.5
Comport : COM5
Bin file: SampleLight_v1.2_butt3reset_ieee.bin
Device : Default (e.g. UNO)

Comport open!
Baud:115200 <data:8> parity:none stopbit:1 DTR:off RTS:off

File open!
Block total: 512

Enable transmission...
Request sent already!
/********************************************************************/

  • If there is no respond last for 3s, please press "Ctrl+C" to exit!
  • And pay attention to :
    1. The connection between computer and Arduino;
    1. The connection between Arduino and CC2540;
    1. Whether the device you using is Leonardo or not;
    1. Other unexpected errors.
      /********************************************************************/

Waiting for respond from Arduino...

Uploading firmware...

1 Like

In case anyone is bored today, new firmware for MonaLisa lets you get a map of your zigbee mesh!
Well, sort of. It has a new command that will print out over serial the neighbors and connection strengths to each neighbor for a given node. But it would just be a matter of a few hours for a motivated individual with the right python skills to start at the hub and then iterate through the whole mesh, gathering up the info, and drawing it with graphviz!
Details have been added to the "guide".

1 Like

Is the MonaLisa firmware specific to the revision of the board? I have a v1.1 MonaLisa and want to make sure I donā€™t mess anything up.

The only difference is that until v1. 2, the digital input 1 was used for the reset button. From 1.2 on it's digital input 3. The new firmware is for the newer boards. So if you install it on your board, the reset button won't work, that's all. But updating/reloading the firmware also resets the board, so you could always just do that if you ever needed a reset.

Thanks. Iā€™ll leave well enough alone. What is the ETA on the v1.4 boards?

In stock! All boards sold on eBay since late last week are v1. 4.
And they will come preloaded with the latest firmware.

2 Likes

Another MonaLisa board earning her kibble.
Left to Right
1400mAh LiPo battery ~$10
Adafruit PowerBoost 500 Charger (the UPS) ~$15
Two voltage dividers, USB in V and Batt V
MonaLisa
Battery voltage meter.
There is USB power meter for now, to be removed
The hub used ~600mAh in three hours
UPS should last 5-6 hours with the 1400mAh battery.
Not that it will do much good but the hub will send a notification when line power is lost
and then shutdown when the battery drops to 3.2V

3 Likes

Oh God they're multiplying!
Two are now four.
Even getting good a flashing them.
Once the E32 LoRa modules get here I'll order some v1.5 boards.

1 Like

Well, I have lots of time now.
Here's what my zigbee mesh map made using the MonaLisa board looks like. I added python scripts and instructions to the MonaLisa guide.

4 Likes

Update:
4 MonaLisas on the mesh for a week or so, all doing well.
My LoRa modules are stuck in China, hope they keep getting better over there.
Ordered a couple of ESP8266 WiFi modules to keep me busy.

Not much to show but Iā€™m working on my first app for the hub.
It looks like an app is the only way to send other device data to the MonaLisa.
Iā€™ve got the app reading temp and RH values from a number of devices and sending the values to
to a ML as a series of strings.
Iā€™ve broken the app though, it will only run if open the app then click done.

If you share your app code Iā€™d be willing to assist in the troubleshooting, if desired.

1 Like

I'm curious why you're sending those values to the ML board. Couldn't you just do the automation in Hubitat instead of having the ML board do the processing?

What events does your app subscribe to?

Dan thanks I might take you up on that.
Let me try beating my head on the keyboard a bit first.

1 Like

subscribe(tempSensors, "temperature", handler)
subscribe(RHSensors, "humidity", handler)

As to why?
Because Iā€™ve never shied away from wouldnā€™t it be cool if ......
MonaLisa has a way to transfer data to a serial device.
Wouldnā€™t it be cool if I made a weather station that could be a dashboard as well as pull in outside weather?
That you can have a microprocessor that receives all sorts of data from the mesh and then use it creates a whole new world of deviceā€™s doesnā€™t it?

As one of my best technicians said ā€œ if your going to be stupid, you better be toughā€
I had no idea what I was getting into when I started this.

Do you have your full app? Does it contain a method "handler"?

That only received data via serial?

No, not really. Anything you could do on an Arduino, you could do in Hubitat. Or a Raspberry Pi. Or any other number of things that have more processing power than an Adruino. I just don't understand where this is going....but I'm more than willing to help you get there. lol

1 Like

Ryan - thanks I had screwed up my handler method, working again!