Description
The Roomba has dirt detection sensors inside that read out 0 to 255 depending on how dirty the incoming air is. Since I'm familiar with the dirt detect LED, which has a binary state, I had assumed that this would be a boolean value. Happy surprise!
Warning
I have not tested this in a real Roomba yet. My Roomba is on loan right now.
To Test
If you have a github account:
checkout dirtyDeeds branch of MyRoomba
open Arduino IDE
open Examples -> MyRoomba -> read_dirt_sensor
program your Roomba with it
hit the Clean Button
Observe that the Roomba starts cleaning the floor
Observe that the clean light gets brighter when Roomba runs over dirt
Observe that all the Roomba LED's come on if it's really dirty
Description The Roomba has dirt detection sensors inside that read out 0 to 255 depending on how dirty the incoming air is. Since I'm familiar with the dirt detect LED, which has a binary state, I had assumed that this would be a boolean value. Happy surprise!
Warning I have not tested this in a real Roomba yet. My Roomba is on loan right now.
To Test If you have a github account:
If you don't have a github account: