Projects/OpenBot: Difference between revisions

From Leeds Hackspace Wiki
Jump to navigation Jump to search
m (→‎Instructions for use: Time rounded down to quarter hour)
(New version)
Line 1: Line 1:
[[Category:In_Progress|OpenBot]]
[[Category:In_Progress|OpenBot]]
 
[[File:OpenBot-v2.jpeg|200px|thumb|right|The current OpenBot]]
[[File:Openbot-mdf.jpeg|200px|thumb|right|The larval form of OpenBot]]
[[File:InsideOpenBotv2.jpeg|200px|thumb|right|Inside the case. It's not very interesting.]]
OpenBot is a device that will tweet how long the space is expected to be open for. It is temporarily housed within small MDF box with a large aluminium knob, an LED, a button and a power cable attached.
OpenBot is a device that will tweet how long the space is expected to be open for. Use it to announce to members how long the space will be open for. It is currently a mishmash of aluminium and laser cut MDF. The LED has retreated temporarily to the base, but will be returning to prominence soon!


It is inspired by MakeHackVoid's [https://makehackvoid.com/projects/space-probe/ Space Probe] and can be found on Twitter as [https://twitter.com/LHSOpenBot @LHSOpenBot].
It is inspired by MakeHackVoid's [https://makehackvoid.com/projects/space-probe/ Space Probe] and can be found on Twitter as [https://twitter.com/LHSOpenBot @LHSOpenBot].
Line 17: Line 17:
==About the device==
==About the device==
[[File:OpenBotIntent.png|200px|thumb|right|The intended end result.]]
[[File:OpenBotIntent.png|200px|thumb|right|The intended end result.]]
It's under development at the moment - please keep that in mind. A new enclosure is being designed as we speak. For the mean time though use it, see what works, what doesn't and let Aidan know your thoughts.
It's under development at the moment - please keep that in mind.  
 
A NodeMCU dev board/ESP8266 runs Arduino code, pushing data over the wifi to [[https://thingspeak.com/ ThingSpeak]], which subsequently tweets for us. The number selected on the knob and the estimated time of closing is stored on Thingspeak (web people, ask Aidan for an API key if you want it.)
 
===NTP===
At boot and every 720 minutes thereafter the time is updated from one of two NTP servers. The on-board oscillator is accurate enough to stay reasonably in sync over this period of time, after all it's not that important the time is that precise. In the event that synchronisation with NTP services cannot occur but the device can still connect to ThingSpeak and thus tweet, messages will be appended with #ntpfailure to prompt investigation.
 
The two services are at ''pool.ntp.org.uk'' and ''time.nist.gov''.
 
===Motorised Potentiometer===


Everything runs on an ESP8266 pushing data over the wifi to [[https://thingspeak.com/ ThingSpeak]], which tweets for us. The number selected on the knob and the estimated time of closing is stored on (web people, ask Aidan for an API key if you want it.)
Eventually the knob (which is a motorised potentiometer) will slowly tick down as the time goes by. I'm looking for a suitable H-bridge or similar to facilitate this.


Eventually the knob (which is a motorised potentiometer) will slowly tick down as the time goes by, but I'll get to that later right after I've made the source code less embarrassing and more robust.
==Previous Incarnations==
[[File:Openbot-mdf.jpeg|200px|thumb|left|The larval form of OpenBot with disgraceful MDF box.]]

Revision as of 13:43, 16 February 2016

The current OpenBot
Inside the case. It's not very interesting.

OpenBot is a device that will tweet how long the space is expected to be open for. Use it to announce to members how long the space will be open for. It is currently a mishmash of aluminium and laser cut MDF. The LED has retreated temporarily to the base, but will be returning to prominence soon!

It is inspired by MakeHackVoid's Space Probe and can be found on Twitter as @LHSOpenBot.

Instructions for use

  • Turn the knob to indicate the number of hours you think you will be in the space.
  • Press the button to tweet this on @LHSOpenBot.

This doesn't replace the "Open to Members" and "Empty" notes on the website but rather complements it. If you are making a special journey and you don't have keyholder access make sure someone will be around when you arrive: use IRC, the mailing list or the Hackphone.

To provide a tidy announcement the time is rounded down to the nearest quarter hour.

About the device

The intended end result.

It's under development at the moment - please keep that in mind.

A NodeMCU dev board/ESP8266 runs Arduino code, pushing data over the wifi to [ThingSpeak], which subsequently tweets for us. The number selected on the knob and the estimated time of closing is stored on Thingspeak (web people, ask Aidan for an API key if you want it.)

NTP

At boot and every 720 minutes thereafter the time is updated from one of two NTP servers. The on-board oscillator is accurate enough to stay reasonably in sync over this period of time, after all it's not that important the time is that precise. In the event that synchronisation with NTP services cannot occur but the device can still connect to ThingSpeak and thus tweet, messages will be appended with #ntpfailure to prompt investigation.

The two services are at pool.ntp.org.uk and time.nist.gov.

Motorised Potentiometer

Eventually the knob (which is a motorised potentiometer) will slowly tick down as the time goes by. I'm looking for a suitable H-bridge or similar to facilitate this.

Previous Incarnations

The larval form of OpenBot with disgraceful MDF box.