[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 379: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4586: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4588: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4589: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4590: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
Lowell Makes Forum • View topic - Twitter Enabled vending machine

Twitter Enabled vending machine

Tell us about projects you are working on or you would like to see at Lowell Makes

Twitter Enabled vending machine

Postby leftyfb » Tue Dec 31, 2013 1:09 am

https://github.com/leftyfb/tweetmachine

Purpose

These scripts will enable a snack vending machine donated to Lowell Makes (lowellmakes.com) to serve up snacks, Arduino's, Raspberry Pi's and other widgets to the Lowell Makes members via the local keypad or by sending out a tweet.

Requirements

Raspberry Pi - http://www.adafruit.com/products/998
Vending machine (unknown model at the moment)
LCD (model and extact purpose TBD)
2x MCP23017 for reading from vending machine keypad and sending signals to vending machine - http://www.adafruit.com/products/732
ttytter - http://www.floodgap.com/software/ttytter/
Twitter API key for ttytter http://www.floodgap.com/software/ttytter/#ba
Tweet Vending machine

TODO

[✓] Control vending machine button pad
[_] Add button to initiate
[_] Control vending machine LCD display
[_] Insert pi inbetween panel & control board
[_] Add/control external LCD display
[_] Add/control LCD display (external)
[_] Talk to database for member $$ account
[_] Talk to database for list of items & cost
[_] Talk to paypal API
[_] PHP web interface for settings
User avatar
leftyfb
 
Posts: 47
Joined: Mon Dec 30, 2013 11:42 pm
Location: Lowell, MA

Re: Twitter Enabled vending machine

Postby leftyfb » Sun Jan 19, 2014 9:53 pm

Sajin and I made a lot of progress on this tonight. We finally cracked the code for sending keypad signals (D1, A5, H3) to the vending machine using a python script and a PiFace .

The first phase is to help bring a little awareness to Lowell Makes by having people send out a tweet to our @makesbot account with a mention of @lowellmakes and a 4 digit code which will be randomly generated and displayed on a 3 digit, 10 segment LCD display. The script checks for both the code and the mention of lowellmakes and will then reward the user with a free trinket, preferably one made at Lowell Makes(3D printed items, laser cut items(when we get a laser cutter), etc).

As of tonight, we have it listening for lowellmakes and a hard-coded 4 digit code until we learn how to control the LCD. It then spits out a hardcoded item from the vending machine.

The next steps are to control the built in LCD on the vending machine and detach communication to the LCD and keypad from the vending machine. This idea will be to take the user input on the keypad, pass it into the pi, the pi displays the input on the LCD, then checks if the user has the amount on their account(more to come on this later) and if so, pass the user input onto the vending machine. This will require 2x MCP23017's to expand the GPIO capability of the Raspberry Pi.

Further planning will involve an RFID reader to read member cards(the same ones to enter the building and use large equipment) and tie that in with member accounts on a database. Members can add money to their account by donating to Lowell Makes via paypal or possibly by hand. We might even take bitcoin!

Here's a quick demo of it working (hopefully we can make this respond quicker)
User avatar
leftyfb
 
Posts: 47
Joined: Mon Dec 30, 2013 11:42 pm
Location: Lowell, MA

Re: Twitter Enabled vending machine

Postby leftyfb » Sun Jan 19, 2014 10:03 pm

Some pictures (oh yeah, we got a lock for it as well since the one it came with was drilled out)

2014-01-16 19.42.28.jpg
2014-01-16 19.42.28.jpg (51.6 KiB) Viewed 18689 times
User avatar
leftyfb
 
Posts: 47
Joined: Mon Dec 30, 2013 11:42 pm
Location: Lowell, MA

Re: Twitter Enabled vending machine

Postby leftyfb » Sun Jan 19, 2014 10:12 pm

2014-01-19 13.39.32.resized.jpg
2014-01-19 13.39.32.resized.jpg (96.55 KiB) Viewed 18689 times
User avatar
leftyfb
 
Posts: 47
Joined: Mon Dec 30, 2013 11:42 pm
Location: Lowell, MA

Re: Twitter Enabled vending machine

Postby leftyfb » Sun Jan 19, 2014 10:12 pm

2014-01-19 13.39.58.resized.jpg
2014-01-19 13.39.58.resized.jpg (92.47 KiB) Viewed 18689 times
User avatar
leftyfb
 
Posts: 47
Joined: Mon Dec 30, 2013 11:42 pm
Location: Lowell, MA

Re: Twitter Enabled vending machine

Postby leftyfb » Sun Jan 19, 2014 10:18 pm

photo-1.resized.jpg
photo-1.resized.jpg (107.46 KiB) Viewed 18689 times
User avatar
leftyfb
 
Posts: 47
Joined: Mon Dec 30, 2013 11:42 pm
Location: Lowell, MA

Re: Twitter Enabled vending machine

Postby leftyfb » Sun Jan 19, 2014 10:19 pm

photo-2.resized.jpg
photo-2.resized.jpg (21.08 KiB) Viewed 18689 times
User avatar
leftyfb
 
Posts: 47
Joined: Mon Dec 30, 2013 11:42 pm
Location: Lowell, MA

Re: Twitter Enabled vending machine

Postby Jabberwocky » Tue Jan 21, 2014 10:27 am

Pretty awesome work. Keep us posted on the progress, and if you need help.
'Twas brillig, and the slithy toves
Did gyre and gimble in the wabe;
All mimsy were the borogoves,
And the mome raths outgrabe.
Jabberwocky
 
Posts: 27
Joined: Mon Jan 06, 2014 4:34 pm
Location: Lowell

Re: Twitter Enabled vending machine

Postby leftyfb » Tue Jan 21, 2014 11:07 am

We always need help :)

Any good at php?
User avatar
leftyfb
 
Posts: 47
Joined: Mon Dec 30, 2013 11:42 pm
Location: Lowell, MA

Re: Twitter Enabled vending machine

Postby Jabberwocky » Tue Jan 21, 2014 3:49 pm

It's been a couple years, but yes, I've done a decent amount of PHP in the past. What are you looking to do?
'Twas brillig, and the slithy toves
Did gyre and gimble in the wabe;
All mimsy were the borogoves,
And the mome raths outgrabe.
Jabberwocky
 
Posts: 27
Joined: Mon Jan 06, 2014 4:34 pm
Location: Lowell

Next

Return to Projects

Who is online

Users browsing this forum: No registered users and 1 guest

cron