Archive for the ‘php’ Category

Programming Arduino on the cloud: codebender

Wednesday, July 4th, 2012

codebender is web-based IDE, mainly built with HTML5 and Javascript, that focuses on the development for the Arduino platform. Since it is going to be used directly from the browser (note that currently codebender is still beta), it will further simplify the whole development process, avoiding the installation of software and libraries on the local machine.

From the home page of the project:

We want to lower the barrier to entry, which is necessary to help everyday people start their first project, become makers and advance technology instead of using it. codebender requires no installation, so you can get started with Arduino programming the minute you get one in your hands! And with the development tools we provide, you can do so faster and easier! codebender also stores your code on the cloud, so it’s safe and accessible from anywhere, anytime.

Several nice features will be available soon, such as remote flashing: together with an Ethernet shield flashed with a properly designed TFTP bootloader, you will be able to upload a sketch remotely, over the internet! Another nice feature regards its integration with the open documentation available on the Arduino website, which will be accessible directly from the IDE by selecting a piece of code and, then, by pressing ctrl+space.

More information can be found here.

[Via: HackADay and codebender's website]

Arduino Candy Grabber, Web Controlled.

Thursday, March 31st, 2011

A step-by-step guide on controlling physical things (like grabbing candies with a mechanical arm) via Internet (please, try!).

In this instructable you will learn how to connect to your arduino and control it over the net, set up a video stream, and how to control stuff with your arduino all in realtime. I’ll try to show you on a concrete example how this could be done, but the code I used and wrote is going to be generic so you can use it for your projects. Note that I haven’t discovered anything new but rather used code that I found lying around the net, built from it and changed it fit my needs.

(…) So how should it work? The idea is that there is a Flash AIR app on my home computer that when a remote client connects to it starts the video broadcast. The communication between the client and the AIR app would be through a PHP socket because it can instantly push messages from one to the other. The socket will handle all the clients and the queuing. The Red5 server is used to handle the video broadcast, stream the video and send the arduino commands from the client that is first in the queue to the AIR app (although it could do so much more… we’ll talk about that in a later step). Finally TinkerProxy is used to send commands from the AIR app to the arduino that is connected to the same computer.

Thanks to Mario for the link!

via [Instructables], grab the thing [here]

Hacked Toy Internet Alert Circuit

Tuesday, October 12th, 2010

 

 

Roth Mobot shared a nice project about an “interface between the Internet and a common circuit bent toy.

We decided to create a circuit that would activate a toy whenever someone logged into Roth Mobot’s web site. We designed a simple and elegant solution using an Arduino, a home made Vactrol, a common electronic toy, and three simple scripts written in different programming languages. We’d like to thank William Swyter for lending us his Arduino, and Factory Smoke for his Vactrol suggestion, which stopped us from creating overly-complicated custom circuitry with transistors and diodes, and made the programming a piece of cake. The result was an elegant circuit that electrically insulates the toy from the Arduino (and the computer) by “optically coupling” them with light.

(more…)

Control Your Arduino via Mobile Phone Through the Internet

Thursday, October 7th, 2010

 

[Bilbo] forum user shared a nice piece of code to communicate to Arduino via Twitter (and Php, and Python, and offcourse a PC hooked up to the Arduino). If you need to get rid of shields and stuff you may want to follow his post:

Alright now I know that there have been lots of threads on this, but I think this is a different approach. I wanted to be able to control my arduino from my cell phone, and without a cell shield or ethernet shield. Thus, i did it through twitter through my computer.

via [ArduinoForum]

 

 

 

 

Arduino, Php, Lcds, Xbees: Tactical Texting In Public Spaces

Friday, September 17th, 2010

It’s been quite a long time since I’m following this project. Now [Michael] came to a certain level of stability and shared his thoughts (and codes) for our personal benefit:

While the adventure in working on this project began months ago, I’ve finally sorted through the mess of files I made and put it all together in a nice handy zip folder. Using Arduinos, XBees, LCDs, and PHP, this project was challenging from a technical stand-point, but I think the project is now at a place where it can act as a foundation for a number of other projects I’m hoping to take on.

While the most-recent installation of this project was on view as part of SRSI, I’m already looking at the Arduino-TVOut library dreaming of what to do next.

I have to find some time to read back again all the project.

via [BrockenCityLabs]

 

 

(Really) Cheap RFID door opener

Friday, May 21st, 2010

[Ethan Zonca] explain is final project using Arduino, RFID, and an old PC.

Well, the school year is over, so I thought I’d post up some information about my (extremely cheap and junky-looking but functional) door opener.

The door handle is turned by one 24v globe motor (which have encoders that I’m sadly not using at the moment), and is pulled open by another identical motor. A very affordable ($30) SparkFun RFID reader is attached to the back the door so cards can be scanned from the outside. An arduino controls the process, and drives motors and a cooling fan with 3 darlington transistors.

The arduino was attached to an old Dell laptop, which ran the Apache webserver. A small password-protected php web interface was created to allow door opening from anywhere on campus. KDE4 widgets allowed door opening from computers inside the room, letting my roommate and I avoid walking less than 8 feet (or less) away to open the door for someone.

Any chances to get the code? More pictures?

via [protofusion]

XBees, Arduinos, Serial Data

Thursday, May 20th, 2010

Some update (and wireless inhancement) of the arduino+php+lcd project of [justin] from [brockenCityLab]

I made some huge progress over the last week or so on this ongoing Arduino / LCD project — it’s finally gone wireless!

With some more silly mistakes behind me, I’m finally getting a better handle on how to break down the problems I run into and solve them a lot faster. I remember back in February, it seemed as though it was going to be impossible to actually get this wireless part happening, so I’m super relieved to know it’s at least partly working.

Also, there have been people asking for the code used in this project (in terms of PHP and Arduino scripts), I will upload them! I just haven’t had the time to go through and appropriately clean them up and comment them, so I’m not sure how useful they would be at this point. I just wanted to note that I will indeed be doing that soon though!

allloooot of pictures.

via [brokencitylab]

Arduino Email Manager [3 part tutorial]

Friday, May 7th, 2010

[Torchris] comes back from a little pause with a nice step by step tutorial on a mail receiver.

I will post the software in subsequent entries, but for now I will just explain that I decided to go with using a mail “pre-processor” application written in PHP. Originally I wanted to do everything on the Arduino so it would be a complete, stand-alone solution, but, alas, it just proved to be too hard for the Arduino’s limited text processing abilities and my small brain. Basically, even with the Duemilanova based on the ATMEGA328, you really can’t load a string array with more than a couple of hundred characters before the Arduino locks up. Unfortunately, you need to look through at least the first 1,500 – 2,000 characters to get the “from” and “subject” info I wanted. I looking into using PROGMEM, but I just couldn’t get my head around it (looks like all that fancy “pointer” stuff I can never figure out!). Then there’s the Arduiniana Flash library, but it seems limited to strings you load at the beginning, rather than dynamic strings.

Finally, I just decided to go with a pre-processor written in PHP. I already know enough PHP to be functional and it is excellent for text processing. When I went to figure out how to do sockets programming with PHP, the first tutorial I found was on writing a script to access a POP3 email server (check it out)! Using a pre-processor isn’t cheating too much. Tom Igoe uses one in Making Things Talk for his “Networked Air Quality Meter” project. Of course, on a much vaster scale, that is essentially how the RIM Blackberry email system works – emails are routed through their preprocessor software which compresses and reroutes them them down to the smartphone.

video and links after the break

(more…)

Spy on your office

Monday, April 12th, 2010

Ever wanted to take a look at your office while you are away?

HackADay summarized a very interesting 3 part tutorial from Garage Developer about setting up a home made surveillance system.

Im going to assume you have read the Part-1 and Part-2 of this post. Part-1 provides the hardware and Part-2 with the software for streaming and controlling the camera. [Part-3] will focus on the php file which is generated by the PHP webpage and its usage by the microcontroller to move or pan the camera.

Via [Garage Developer] [HackADay]

Arduino + LCD + PHP [Part 4]

Friday, April 9th, 2010

[Justin] keeps on updating his Arduino + LCD + PHP article series.

I’ve made some really great progress on this ongoing Arduino + LCD project over the last couple of weeks — some of the two larger hurdles are now out of the way, the results of which you can see in the video above.

[Justin] keeps on updating his Arduino + LCD + PHP article series.

I’ve made some really great progress on this ongoing Arduino + LCD project over the last couple of weeks — some of the two larger hurdles are now out of the way, the results of which you can see in the video above.

[Justin] keeps on updating his Arduino + LCD + PHP article series.

I’ve made some really great progress on this ongoing Arduino + LCD project over the last couple of weeks — some of the two larger hurdles are now out of the way, the results of which you can see in the video above.

(more…)