Finally hacked up my wireless web-connected timer

Tampers, Triple Baskets, Bottomless PFs, Temp Measuring Devices, Barista Tools, other Coffee Widgets
Post Reply
tofergregg
Freeze Dried
Posts: 2
Joined: Sat Apr 19, 2014 1:28 pm

Finally hacked up my wireless web-connected timer

Post by tofergregg »

Saw a couple of posts here about hacking the S1 with a non-standard timer, e.g,

http://www.s1cafe.com/viewtopic.php?f=3 ... all#p21953

I decided that it wouldn't be too hard to do this with a Raspberry Pi and a bit of soldier and wires. After a couple of weeks of research and getting my hands dirty, I finally got it all together. I wanted to be able to tell if the machine was on or off, and whether the steam boiler was on or off. A future mod might involve seeing the current temperature, but that might be overboard...

Here are the pics:

http://imgur.com/a/JUAjG

The web site pic:
Image

Cheers!
p.s. Just found another RasPi build here, too:
viewtopic.php?f=34&t=1911&p=22865&hilit ... man#p22865
User avatar
chas
Vivaldi Dreamer
Posts: 3044
Joined: Wed Jun 02, 2004 11:52 pm
Location: Central Maryland
Contact:

Re: Finally hacked up my wireless web-connected timer

Post by chas »

Congratulations. This is the best one yet!
Chas
LM GS/3 & LaSpaziale Dream v 1.25 (US 120V)
Mazzer Kony E, Customized Rocky
Hottop P/B
tofergregg
Freeze Dried
Posts: 2
Joined: Sat Apr 19, 2014 1:28 pm

Re: Finally hacked up my wireless web-connected timer

Post by tofergregg »

Thanks! Once I figured out how to open up the controller (thanks to MonkeyK's post I mentioned above), it was a matter of some judicious use of a multimeter and figuring out how to control the buttons. I ended up using an optoisolator that kept the machine's electronics separate from the Raspberry Pi's electronics, so it is relatively safe. The one problem is that I didn't correctly do the math for a resistance for connecting to the ON LED, so it is a bit dimmer than normal. But, seeing as I'm not a fan of the bright flashing green light, this is actually a bit of a bonus! :)
Pryz

Re: Finally hacked up my wireless web-connected timer

Post by Pryz »

Awesome. Any chance of you wanting to post detailed instructions. I can likely do this, but detailed instructions are always easier to work from than a picture.
lars
Freeze Dried
Posts: 3
Joined: Thu Mar 26, 2015 7:04 am
Location: Denmark

Re: Finally hacked up my wireless web-connected timer

Post by lars »

Holy cow!
I had been tinkering with just hooking up to turning it on and off. But this i amazing.
Is there any chance you would share schematics and other findings?
raddude
Latte
Posts: 13
Joined: Fri Oct 06, 2017 6:53 pm
Location: Portland, OR.

Re: Finally hacked up my wireless web-connected timer

Post by raddude »

Here's the updated information from tofergregg, all credits go to him:

Arduino platform and the code for that is here:

https://github.com/tofergregg/EspressoWemos

The original Raspberry Pi code is here:

https://github.com/tofergregg/EspressoPi

Here's where you can order the bare board:

https://oshpark.com/shared_projects/TAsYDcsG

It appears that he used the WEMOS D1 mini and the Minivialdi shield is built on that. He also added a SD card shield found here:

https://www.amazon.com/ACROBOTIC-ESP826 ... s=wemos+sd

I'll be working on my own mod and will post updated information, including Digikey parts list for folks that venture to build the mod.
If you are familiar with Arduino, that is the way to go. I downloaded the ExpressWemos files, but I needed to add some additional files in Arduino to be able to have the program compile.
Last edited by raddude on Thu Dec 20, 2018 11:19 am, edited 1 time in total.
s1guy
Latte
Posts: 12
Joined: Thu Nov 22, 2018 8:10 am
Location: Minnesota

Re: timer

Post by s1guy »

I'm undertaking this same project now. I looked at tofergregg's stuff, but I decided to go with a pi zero. They're small, cheap, have built-in wifi, and support for a full web stack.

I now have it rigged together to just power the machine on at fixed times, but I'm going to get some boards spun and a full app built around it in the near future. I'll post details as I get them
raddude
Latte
Posts: 13
Joined: Fri Oct 06, 2017 6:53 pm
Location: Portland, OR.

Re: Finally hacked up my wireless web-connected timer

Post by raddude »

I tried building the board but I could not get it to work, loading from the SD card was really slow. I changed my approach and used the ESP8266 with the shield relay and used the Blynk app to turn the espresso on. The only problem is that the Blynk app for IOS does not have the eventor widget, only android phones. The Arduino programming is minimal. I can turn the espresso on in the morning and can turn it on and off from anywhere outside my house. I still need to figure out a shield to read the on/off led to determine the espresso status.
s1guy
Latte
Posts: 12
Joined: Thu Nov 22, 2018 8:10 am
Location: Minnesota

Re: Finally hacked up my wireless web-connected timer

Post by s1guy »

Here is the I/O board I made for my Pi that let's me see the state of the boiler on power leds and remotely hit the boiler and power buttons
s1.png
I currently have it set up so that I can access and control the current machine state over an http api. It alsostores a summary of each power on cycle in firebase.
raddude
Latte
Posts: 13
Joined: Fri Oct 06, 2017 6:53 pm
Location: Portland, OR.

Re: Finally hacked up my wireless web-connected timer

Post by raddude »

which optoisolators did you use?
Would you mind sharing your raspberry pi zero code?
s1guy
Latte
Posts: 12
Joined: Thu Nov 22, 2018 8:10 am
Location: Minnesota

Re: Finally hacked up my wireless web-connected timer

Post by s1guy »

I used PC817 isolators: https://www.farnell.com/datasheets/73758.pdf

Here is the code
https://goo.gl/iW7r7f

Here are the boards I used: https://oshpark.com/shared_projects/xM55dRE8
The oshpark ones needed a few mods to work correctly. The schematic should be updated with the latest version.
raddude
Latte
Posts: 13
Joined: Fri Oct 06, 2017 6:53 pm
Location: Portland, OR.

Re: Finally hacked up my wireless web-connected timer

Post by raddude »

Are the mods needed to the layout or the resistor values?
s1guy
Latte
Posts: 12
Joined: Thu Nov 22, 2018 8:10 am
Location: Minnesota

Re: Finally hacked up my wireless web-connected timer

Post by s1guy »

They're to the layout. I had some extra parts on there to monitor the shot buttons, but I decided not to use them. There were also some routing errors and I found out that I needed a cap on the one side of the isolator, before that I was getting some erratic readings. I do have a new board done that should have all the fixes, but I haven't ordered any yet.
raddude
Latte
Posts: 13
Joined: Fri Oct 06, 2017 6:53 pm
Location: Portland, OR.

Re: Finally hacked up my wireless web-connected timer

Post by raddude »

Thank you for the clarification. I’ll wait for the updated layout and order a couple of boards.
s1guy
Latte
Posts: 12
Joined: Thu Nov 22, 2018 8:10 am
Location: Minnesota

Re: Finally hacked up my wireless web-connected timer

Post by s1guy »

Here is the updated board.
https://oshpark.com/shared_projects/dyIzPMhS

I doubt I'll order one for a while as this one is already working. But I can help debug if you get one.
edm60
Freeze Dried
Posts: 3
Joined: Fri Nov 12, 2021 11:02 am
Location: uk

Re: Finally hacked up my wireless web-connected timer

Post by edm60 »

I'm loving this solution and can't wait to start. But can anyone tell me what sort of capacitors C1 and C2 are? (as marked on the circuit diagram posted on 22 Nov 2018 by s1guy?)
Post Reply

Return to “Accessories”