Arduino code for reading instructions from the wheelchair

Registered by Zongyi Yang

The Arduino needs to be able to read switch states from the ACU box on the wheelchair and send a corresponding bluetooth signal. Currently, the bluletooth message sent is just one of 5 different characters describing the state of the wheelchair's switches (details available here: http://wiki.scyp.atrc.utoronto.ca/w/Switch_Event_Provider#Arduino-Android_Interface).

Echo acknowledgements, which may help each device identify and automatically correct broken connections are also described.

Blueprint information

Status:
Complete
Approver:
None
Priority:
High
Drafter:
Zongyi Yang
Direction:
Approved
Assignee:
Zongyi Yang
Definition:
Approved
Series goal:
Accepted for original
Implementation:
Implemented
Milestone target:
None
Started by
Jorge Silva
Completed by
Jorge Silva

Sprints

Whiteboard

The following code:
http://bazaar.launchpad.net/~jorge-silva/meadl/main/annotate/head:/servers/arduino/full_server/full_server.pde

takes care of providing switch event messages and echo acknowledgement.

Tested bluetooth module in various locations:

The max connection distance is around 3m.

The max communication distance is around 4m, a bit further than the connection distance.

Tested in downtown apartment and suburb house with similar results. There was no noticeable effects of being close to other wireless devices like routers.

Added rudimentary echo to the code.

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.