Friday, June 29, 2012

update 3


Hello again, and again, sorry for not updating in a while.

So progress is being made.  All the components have been assembled and we should  see some vending machines put up in Ghana in the next few weeks.
I have spent today(Thursday) assembling packets of electronics that will make it easy for travel and then easy to assemble as well.
The code for the Arduino currently:
·              * Registers when a purchase occurs.
·              *Registers when the machine is “low” (3 items or less)
·             * Registers when the machine is empty
·             *Registers when the machine is refilled.
·             *Send SMS for any scenario to multiple phone numbers

The hardware we are using also has place for a battery monitor so the arduino can send an SMS when its batteries need to be recharged. That code will be added shortly (as they are going to be deployed shortly).  As soon as that is done, I am going to update GIThub with the new code.

I am also working on a detailed  account of all the hardware components involved so the entire project can be easily duplicated.

Also in the past week, I worked on a project from last year that was a computer that received SMS and  sent the location of the nearest vending machine. It was a lot of frustrating work, and I hope that once it gets to Ghana it will be working again.

This past week has been busy, and I think the next few will be busy as well. I can't wait to get these machines out there and running!


Also:
Like TED talks? (Who doesn’t?) Here is one about Arduino, open source hardware, and the maker community. Enjoy!

Tuesday, June 12, 2012

Update 2


Welcome back!

Sorry I have not updated in a while, I’ve been busy with the project. Right now I have completed getting the computer to communicate with the arduino and a GPRS shield.
I ran into some problems over the past few weeks. First, the documentation on what will and will not work as a power supply for the GPRS shield were quite vague… different documents had different specifications, and I needed to make sure that the power supply I was using would work for sending SMS (text messages). I had found that the shield can be powered by the Arduino itself. Some documentation says that the GPRS shield may pull too much current, but I have not run into a problem, yet. I do have replacement Arduinos in case something goes wrong, but I don’t see that being a problem.

This leads me to another problem I ran into. The SeeedStudio GPRS shield does not work with an Arduino Uno. This was one of my biggest problems because I was hoping to try to use the UNO (my own personal board) for some testing (in case it did fry the board, I would fry my board rather than the research group’s board, an Arduino Duemilanove). I am not sure why it does not work with the UNO. I can get it to start to communicate, but once I start to give it any commands,  it says there are errors. I will be looking into possible solutions in the upcoming weeks(I believe that I heard somewhere that the Duemilanove is being discontinued).

I had to find a SIM card to work with the shield. I found an inexpensive ‘pay as you go’ with unlimited texting from AT&T which seems to work.  A problem I ran into was that I could receive texts, but I couldn’t send them, and I couldn’t see if I was actually transmitting anything. I was debugging and thought of two possible problems: 1) insufficient power. And 2) I was trying to send to the wrong number. After hours and hours of tampering, I found some commands that mentioned an SMS message center number. I was able to set the number into the shield, but that is something that will need to be changed when the machines are placed in Ghana.

Goals for the following week:
·     *           Get the arduino/shield to text as a ‘stand alone’ system (without needing a computer)
·     *           Find a battery to use…  with correct voltage and current, rechargeable, and can be adapted to connect to the arduino.
·      *        Combine the arduino and vending machine so have a working prototype.
·      *        Start documentation on assembly.

Other goals:
·      *       Put together a flash drive with all necessary programs and files to edit and download software on site.
·        *       Assemble wiring for easy assembly on site.