<div dir="ltr">If you want to power it from the 3.3v rail the safest thing to do would be disconnect the motor unit, as then it draws virtually nothing.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 15 Feb 2021 at 10:21, <<a href="mailto:christoph@winterstiger.at">christoph@winterstiger.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-GB" style="overflow-wrap: break-word;"><div class="gmail-m_5384393413898385240WordSection1"><p class="MsoNormal"><span>Fantastic, that’s good to know! <u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span>I think the 50ma figure for the 3.3V rail is very old, but they never published updated numbers for newer models. See also </span><a href="https://raspberrypi.stackexchange.com/questions/51615/raspberry-pi-power-limitations" target="_blank">Raspberry Pi Power Limitations - Raspberry Pi Stack Exchange</a> and <a href="https://raspberrypise.tumblr.com/post/144555785379/exploring-the-33v-power-rail" target="_blank">Piversify — Exploring the 3.3V Power Rail (tumblr.com)</a>. The latter pushed it to 800mA. So, I think we can recommend people go for this simple solution as long as they are not powering anything else from that rail while injecting the key.<span><u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span>Cheers,<u></u><u></u></span></p><p class="MsoNormal"><span>Christoph<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> OpenTRV-dev <<a href="mailto:opentrv-dev-bounces@lists.opentrv.org.uk" target="_blank">opentrv-dev-bounces@lists.opentrv.org.uk</a>> <b>On Behalf Of </b>Robert May<br><b>Sent:</b> 14 February 2021 23:26<br><b>To:</b> Closed list for developer discussions <<a href="mailto:opentrv-dev@lists.opentrv.org.uk" target="_blank">opentrv-dev@lists.opentrv.org.uk</a>><br><b>Subject:</b> Re: [OpenTRV-dev] Help getting serial connection to Radbot<u></u><u></u></span></p></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">Regardless of what else changed I can't make it work with my (cheap) CH430 USB dongle (similar to this one: <a href="https://www.ebay.co.uk/itm/3-3V-5V-Serial-Adapter-Module-CH340G-USB-to-TTL-6-Pin-UART-Adapter/192935577926?hash=item2cebdb4946:g:RFsAAOSwyXNZ-mJr" target="_blank">https://www.ebay.co.uk/itm/3-3V-5V-Serial-Adapter-Module-CH340G-USB-to-TTL-6-Pin-UART-Adapter/192935577926?hash=item2cebdb4946:g:RFsAAOSwyXNZ-mJr</a>). It works fine with the PI's built in serial port, so no actual dongle needed at all.<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">To use the built in serial port you need to stop the PI using it for boot messages and attaching a terminal to it:<u></u><u></u></p></div><div><p class="MsoNormal">sudo raspi-config; Select option 3 Interface Options, and then Option P6 Serial port; Answer 'no' to the question "would you like a login shell to be accessible over serial?", and 'yes' to "Would you like the serial port hardware to be enabled", and then reboot.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Then connect Physical pin 8 (TxD) to TX pad on Radbot and physical pin 10 (RxD) to RX pad on radbot. COnnect one of the ground pins (e.g. physical pin 6) to the -ve terminal of the radbot. and start a terminal on /dev/ttyAMA0<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Either screen (if you have it installed): screen /dev/ttyAMA0 4800. (Ctl-A k to kill the session and exit)<u></u><u></u></p></div><div><p class="MsoNormal">or microcom (installed in base image): busybox microcom -s 4800 /dev/ttyAMA0 (Ctrl-X to exit)<u></u><u></u></p></div><div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">If it's safe to power the Radbot from 5V then it could be powered from the PI, but not from the 3.3V rail if the motor unit's attached (usually OK to get at least 300mA from the 5V rail, but only 50mA allowed from the 3.3v rail - source: <a href="https://www.circuits.dk/everything-about-raspberry-gpio/#:~:text=The%20total%20maximum%20recommended%20current,the%20rest%20of%20the%20board" target="_blank">https://www.circuits.dk/everything-about-raspberry-gpio/#:~:text=The%20total%20maximum%20recommended%20current,the%20rest%20of%20the%20board</a>. ). If my memory serves me I was seeing about 160mA draw when the motor was running.<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Rob.<u></u><u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Sun, 14 Feb 2021 at 23:01, Tristan Keen <<a href="mailto:tristan.keen@gmail.com" target="_blank">tristan.keen@gmail.com</a>> wrote:<u></u><u></u></p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm"><div><p class="MsoNormal">Glad to hear you got there!<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"> My USB/Serial cable (link in Part List wiki page) was outputting 4.9 V open circuit from the "power" connections, so I presume it was connected to the USB main power output. Originally I tried powering the Radbot via a couple of low value (82 Ohm) resistors as I was a bit nervous of driving it at the higher than expected voltage, but couldn't connect reliably. After checking the Atmel 328P's datasheet, which suggests a 2.7 - 6V range, I removed the resistors and tried again - it worked. Voltage dropped to 4.4 volts or so when the motor came on during its initial valve cycling though.<u></u><u></u></p></div><div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">So far all four appear to be unharmed...<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Tristan.<u></u><u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Sun, 14 Feb 2021 at 22:26, Robert May <<a href="mailto:rob@themayfamily.me.uk" target="_blank">rob@themayfamily.me.uk</a>> wrote:<u></u><u></u></p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm"><div><div><p class="MsoNormal">Thanks all. I'm there (or at least I think I am).<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">I changed a number of things - the voltage I'm driving the Radbot (now at 3.3v), I remade my solder connections and replaced the wires/connectors as I think one of the dupont connectors was loose, and I moved to using the built in serial port of the PI (/dev/AMA0). I'll see if I can work out which of these was actually the culprit.<u></u><u></u></p></div></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Out of interest, what is the max voltage that is safe to run the Radbot. If I understand this page correctly (<a href="https://github.com/tyrken/heatmon/wiki/Reprogramming-Radbot-TRVs" target="_blank">https://github.com/tyrken/heatmon/wiki/Reprogramming-Radbot-TRVs</a>) then it is suggesting powering it at 5V (direct from the USB port)<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Onwards.<u></u><u></u></p></div><div><p class="MsoNormal">Rob.<u></u><u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Sun, 14 Feb 2021 at 21:45, Damon Hart-Davis <<a href="mailto:dhd@exnet.com" target="_blank">dhd@exnet.com</a>> wrote:<u></u><u></u></p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm"><div><p class="MsoNormal">Hi,<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">1) FWIW, when I am powering remotely, eg to reflash, I tend to run at 3.6V.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">2) Yes, I think that we label our TX and RX the ‘wrong’ way round and have confused ourselves from time to time. Almost certainly an early error or at least bad choice by me, reinforced by my trying to then be consistent across schematics.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">3) FWIW I use a FTDI TTL-232R-3V3 to talk to Radbots.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Rgds<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Damon<u></u><u></u></p><div><p class="MsoNormal"><br><br><u></u><u></u></p><blockquote style="margin-top:5pt;margin-bottom:5pt"><div><p class="MsoNormal">On 14 Feb 2021, at 20:52, Robert May <<a href="mailto:rob@themayfamily.me.uk" target="_blank">rob@themayfamily.me.uk</a>> wrote:<u></u><u></u></p></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">Thanks Damon, Christoph.<u></u><u></u></p><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I already moved to soldering my connections to eliminate that issue.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">I can see the TX LED flash on my dongle when I hit <return>, and if I swap the tx/rx connections so I have tx on dongle to tx on Radbot and rx on dongle to rx on Radbot then after I hit <return> I see the rx led on the dongle flash approx. every 2 seconds for a while - so I *think* I'm waking it up. This feels wrong, but past experience tells me that there is sometimes confusion over how rx and tx pins are marked.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">But I see nothing in my terminal. I've shortened the wires as much as I can, and I'm sure that my grounds are OK<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Can you expand on what you mean by "perhaps one of the devices doesn’t like the 3.0V supply"?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Here's a couple of pictures<u></u><u></u></p></div><div><p class="MsoNormal"><a href="https://www.dropbox.com/s/s8jdv6j9a4covw3/Photo%2014-02-2021%2C%2020%2041%2054.jpg?dl=0" target="_blank">https://www.dropbox.com/s/s8jdv6j9a4covw3/Photo%2014-02-2021%2C%2020%2041%2054.jpg?dl=0</a><u></u><u></u></p></div><div><p class="MsoNormal"><a href="https://www.dropbox.com/s/sp819pw2ds1lf73/Photo%2014-02-2021%2C%2020%2042%2011.jpg?dl=0" target="_blank">https://www.dropbox.com/s/sp819pw2ds1lf73/Photo%2014-02-2021%2C%2020%2042%2011.jpg?dl=0</a> (not a good shot, but I'm sure the pins and +ve terminals are not touching)<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Any other ideas? I've been staring at this all day and can't see what's wrong.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Rob.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Sun, 14 Feb 2021 at 19:33, Christoph M. Wintersteiger <<a href="mailto:christoph@winterstiger.at" target="_blank">christoph@winterstiger.at</a>> wrote:<u></u><u></u></p></div><blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm"><div><div><p class="MsoNormal"><span lang="EN-US">Hi Rob,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">That’s great, you’ve got very far in a very short amount of time! <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">It sounds like you’re “holding” the wires on – just solder them on if you have a soldering iron around, it’s easy enough to take them back off after the operation.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">I can imagine that there’s a ground potential problem and perhaps one of the devices doesn’t like the 3.0V supply. The Radbot takes very little power and I was able to simply power it from my USB-serial adapter, but that depends on the adapter of course. Alternatively, the RPi also has a 3.3V supply (and 5.0V too) and it has a serial port right next to the supply pins too, so if you have a few breadboard wires around, that would be a simple and quick alternative.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Cheers,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Christoph<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> OpenTRV-dev <<a href="mailto:opentrv-dev-bounces@lists.opentrv.org.uk" target="_blank">opentrv-dev-bounces@lists.opentrv.org.uk</a>> <b>On Behalf Of </b>Robert May<br><b>Sent:</b> Sunday, 14 February, 2021 18:24<br><b>To:</b> Closed list for developer discussions <<a href="mailto:opentrv-dev@lists.opentrv.org.uk" target="_blank">opentrv-dev@lists.opentrv.org.uk</a>><br><b>Subject:</b> [OpenTRV-dev] Help getting serial connection to Radbot<u></u><u></u></span></p></div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p><div><p class="MsoNormal"><span lang="EN-US">I've finally found time to unbox my Radbots. The plan is to build a combined stats hub and boiler controller based on a RPi.<u></u><u></u></span></p><div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">I've successfully compiled the code Christoph shared (<a href="https://github.com/wintersteiger/wlmcd" target="_blank">https://github.com/wintersteiger/wlmcd</a>) and used to to show the one Radbot I've powered up transmits and that I can receive the frames using a CC1101/RPi combination. Of course the decryption fails as I've yet to set a decryption key.<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">I'm struggling to get a connection over the serial port to the Radbot. I'm trying to follow the instructions shared by Tristan (<a href="https://github.com/tyrken/heatmon/wiki/Reprogramming-Radbot-TRVs" target="_blank">https://github.com/tyrken/heatmon/wiki/Reprogramming-Radbot-TRVs</a>) but I can't seem to get any comms over the serial port.<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">I've opened up my radbot to get better access to the pads.<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">I'm powering the Radbot from a bench power supply at 3.0V<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">I've got a USB serial dongle operating at 3.3V logic, grounded to the -ve supply.<u></u><u></u></span></p><div><p class="MsoNormal"><span lang="EN-US">I think I'm hold the rx/tx lines on the pads (tx from my dongle to rx on the radbot and rx on the dongle to tx on the Radbot), but I get nothing from 'screen' that I'm using for my terminal.<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">As far as I know I'm using 4800baud, 8-N-1 (screen /dev/ttyUSB0 4800), which I believ to be the expected settings?<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">Can anyone see anything that I'm doing wrong or give me a pointer to things that I can try. ?<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">Thanks,<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US">Rob.<u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p></div><div><p class="MsoNormal"><span lang="EN-US"> <u></u><u></u></span></p></div></div></div></div></div><p class="MsoNormal">_______________________________________________<br>OpenTRV-dev mailing list<br><a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br><a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><u></u><u></u></p></blockquote></div><p class="MsoNormal">_______________________________________________<br>OpenTRV-dev mailing list<br><a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br><a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><u></u><u></u></p></div></blockquote></div><p class="MsoNormal"><u></u> <u></u></p></div></div><p class="MsoNormal">_______________________________________________<br>OpenTRV-dev mailing list<br><a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br><a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><u></u><u></u></p></blockquote></div></div><p class="MsoNormal">_______________________________________________<br>OpenTRV-dev mailing list<br><a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br><a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><u></u><u></u></p></blockquote></div><p class="MsoNormal">_______________________________________________<br>OpenTRV-dev mailing list<br><a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br><a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><u></u><u></u></p></blockquote></div></div></div>_______________________________________________<br>
OpenTRV-dev mailing list<br>
<a href="mailto:OpenTRV-dev@lists.opentrv.org.uk" target="_blank">OpenTRV-dev@lists.opentrv.org.uk</a><br>
<a href="http://lists.opentrv.org.uk/listinfo/opentrv-dev" rel="noreferrer" target="_blank">http://lists.opentrv.org.uk/listinfo/opentrv-dev</a><br>
</blockquote></div>