Which automower types are you referring?
Btw: in this forum we also have a huge thread regarding the WeMos http://homematic-forum.de/forum/viewtop ... 31&t=29321. So any WeMos solutions are welcome
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Moderator: Co-Administratoren
Great proposal ! The HC-12 connected to the PC must emulate a COM port I guess ?antst hat geschrieben:By the way, if you don't want to deal with WIFi or want to have longer range communication, there is an alternative solution: pair of HC-12 433MHz serial-radio modules (look on aliexpress for "433Mhz HC-12 SI4463" they cost about 3 EUR). They provide serial-radio bridge. Up to 1KM. One module connects directly to Automover (I use internal white connector on the board, pins: 1,2,7,9) and another one via any USB-UART module (like CP2102, you can find one on aliexpress for about 1 EUR) can be plugged directly to PC.
I don't really get the design here.antst hat geschrieben:Or, you can have fancier solution, like I did. One HC-12 is on Automower.
Another is HC-12 is connected with ESP8266, which provides bridge to my sensors wifi network. In my case WLAN range wasn't reliable enough.To the most distant corner of the lawn, and having simpler solution on Automower (nothing is simpler than UART-radio module) seems more preferable to me. "Put and forget" solution.
But using ESP8266 directly on Automower also works. If you need simple uart-wifi bridge, then you can use this firmware https://github.com/beckdac/ESP8266-transparent-bridge , and for simplicity (to avoid soldering all pull-up resistors) you can order from aliexpress "wemos D1 mini" module, which has already everything which ESP8266 needs, it will cost about 3 EUR. Dirt cheap!
Just in case, Automower has 3.3V logical levels on UART interface, and both ESP8266 and HC-12 are also made for 3.3V levels, so no level shifter is necessary. in both cases you can also use 3.3V supply directly from white connector on Automower mainboard.
HC-12 has 3.3V logic serial interface. So, to connect to USB you can use any UART-USB modules, like CP2102, FTDI, CH340G. (easiest is to get CP2102 from china for couple of EURos). This will give you COM port on PC, yes.chercheur hat geschrieben:Great proposal ! The HC-12 connected to the PC must emulate a COM port I guess ?
I just didn't want to have wired connection with my controller (raspberry pi), as it has only 4 USB ports. So, in AM I have HC-12.chercheur hat geschrieben: I don't really get the design here.
You still keep 1 HC-12 in the AM and....where do you use the combination HC-12/ESP8266 ? And which kind of sketch are you using ?
In your case you can have arduino pro mini 3.3V, with sketch , which implements software serial (plus hardware serial you already have on pro mini). One serial is connected either to ESP8266 (which is connected to your wifi) or to HC-12 (with another HC-12 connected to your USB on PC) and another serial connected to AM. Then you can introduce some command prefix (to distinguish commands which goes directly to AM trough arduino with commands arduino has to process, like measuring cells voltages). Then commands to AM you just pass by (write to serial connected to AM and read reply and write to serial which leads outside) and "extended commands" you process directly on arduino.chercheur hat geschrieben: Therefore I'm working (trying to...as I'm a real newbie with Arduino) with an Arduino pro mini:
- 5 different voltage monitoring : sketch is simple
- temperature : sketch is easy
- keep a way to use the basic HEX commands through a kind of transparent UART : I've no idea
- include those 3 functions in 1 sketch : I don't know yet
I would then connect to WIFI through an ESP8266 (I could in fact only use an ESP8266 for all but it has only 1 analog entry....impossible to measure the 5 different voltages).
I finally (temporarily) dropped my Arduino control project (not enough time and knowledge to develop before the summer).chercheur hat geschrieben:HLK-RM04 on aliexpress
Hichercheur hat geschrieben:I finally (temporarily) dropped my Arduino control project (not enough time and knowledge to develop before the summer).chercheur hat geschrieben:HLK-RM04 on aliexpress
The proposed module works perfectly. It connects directly to the internal white connector (PIN 1 & 2) for RX & TX.
The proposed script to control the Automower through Homematic works like a charm. Tx mule !!!
Now, 2 questions :
- I'm mostly interested in monitoring Temperature and Voltage (due to my Li-Ion project). I can do it through Homematic by "running" a program each time and reading the variable. Would it be a way to integrate those 2 in a automatically updated variable for each ?
- drawing graphs with "Thingspeak" would be great too. Did anyone try to connect to it via Homematic ?
Tx again for this great dev !!!