Controlling Raspberry Pi expansion pins with a web interface

For the lucky few who have a Raspberry Pi board in their hands, you can now use the GPIO pins as a web interface (German, google translation). [Chris] is turning this magical board is turning a small device that can play 1080p video into something that can blink LEDs via the web.

The build started with an example of driving GPIO pins under Linux. [Chris] cobbled together a bit of PHP and Javascript on the Raspberry pi. Whenever he goes to the website hosted on the Pi, he’s greeted with the status and direction of a couple of expansion IO pins.

On a semi-related note, [Tony] is building a GPIO MIDI interface for his Pi. Yes, he could just get a USB to MIDI adapter and call it a day, but this is a far more professional looking solution to all the MIDI goodness the RasPi will deliver. If you’ve got any info on other RasPi breakout boards you’ve seen, send them in on the tip line.

Motor controller also does nyan cat

As a freshman at UC Berkeley, [Keegan] has been helping out with his school’s Pioneers in Engineering program that gives high school students some hands on experience with engineering principles, usually by building robots. This year, [Keegan]’s project is a motor controller that just so happens to play the nyan cat song over the motor PWM output.

The motor controller is meant to replace the Pololu simple motor controller the PiE team is currently using. Onboard is an H-bridge chip and an ATmega328 that takes commands from an I2C bus. The ‘328 is loaded up with the Arduino bootloader making the firmware very accessible – a good thing for the high school students that will be building and programming these robots.

[Keegan] put up the Eagle files for the board up on the PiE Wiki. For now, just enjoy the dulcet tones of the pop tart cat theme song after the break.

[Read more…]

Resetting the page count on a laser printer

[Brian] really liked his Samsung color laser printer right up until it was time to replace the toner cartridges. A full set of toner cartridges sell for about the same price as the printer itself, so [Brian] figured he could simply refill the toner in the cartridges he already has. The printer sends out the ‘low toner’ warning  based on page count and won’t print if the page count is too high, negating the economy of a toner refill kit. Luckily, [Brian] figured out a dead simple way to reset the page count so he can use those third-party refill kits.

All the configuration settings and page counts for the printer are stored on an I2C EEPROM. After dumping the data held on this EEPROM with an Arduino and sniffing everything going into the EEPROM with a Bus Pirate, [Brian] was nearly at his wit’s end. Thankfully, serendipity intervened. When [Brian] restarted the printer with the Bus Pirate attached, he noticed it took much longer to initialize. Printing a configuration report, he was trilled to see that all page counts have been zeroed.

The final hack that allows [Brian] to reset the page count and used refilled toner cartridges is a simple wire that ties the SDA line of the EEPROM to ground on boot. [Brian] used a momentary switch, but given this is a once-every-few-months operation, a simple wire would suffice. Check out [Brian]’s page reset demo after the break.

[Read more…]