Arduino code for reading instructions from the wheelchair
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://
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
Whiteboard
The following code:
http://
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.