Use a LightBlue Bean to turn appliances on and off with a PowerSwitch Tail II.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
PowerBean.xcodeproj
PowerBean.xcworkspace
PowerBean
PowerBeanFirmware
PowerBeanTests
img
.gitignore
Podfile
README.rst

README.rst

Power Bean

Connect a LightBlue Bean to a PowerSwitch Tail II to turn things on and off!

The iOS app is built using C4, a great framework for getting started with iOS programming.

The original idea was to be able to power cycle my router when it went choked or to turn it off when I left the house.

The app searches for a Bean named 'PowerBean' and once it connects then the user interface becomes accessible. The lightblue logo dims and brightens upon connect and disconnect.

https://raw.githubusercontent.com/drart/Power-Bean/master/img/PowerBeanScreenshot.jpg

Getting Rolling

Requires cocoapods.

$ pod install

Open the PowerBean.xcworkspace not the PowerBean.xcodeproj.

Bean Setup

  • Connect GND of Bean to IN- on Powerswitch Tail
  • Connect D0 of Bean to IN+ on Powerswitch Tail
  • Upload PowerBeanFirmware to the Bean

https://raw.githubusercontent.com/drart/Power-Bean/master/img/PowerSwitchTail.jpg

Issues

Like many Bean projects, say goodbye to your battery. While the sketch has a long naptime, which should minimize the battery drain, the PowerSwitch actually draws 3ma from the Bean. When I first got it working the light would go on, but not the relay. Although your Bean can operate with a battery in the low 2v range, it isn't enough to trigger the relay.

Links

TODO