Pages: [1]   Go Down
Author Topic: Detect rem phases  (Read 2257 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I will use ir led emitter/receiver for detecting rem phases, the ir led shines on eyelid and the phototransistor will detect if the eye is moving like we are in rem ... but i don't know how to write the code to make me sure that my device has detected rem phase.

So we need to:
1.) read from the sensor with eye opened and hold viewing the sensor
2.) read from the sensor with eye opened and moving it
3.) read from the sensor with eyelid closed

all of these values will be stored in variables.

but when i wiil check if we are in rem phase i don't know how to proceed...with a simple if it doesn't work...too much false positive.

Any suggestions?
THX.
Logged

London, England
Offline Offline
Newbie
*
Karma: 1
Posts: 46
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Best bet is to start by just dumping the data to the serial port.

You can then look at it properly. The aim is to identify some characteristics that are unique to each phase. This should be as simple as possible. Average and rate of change are likely good indicators, but you will need some solid data to work with.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 167
Posts: 12417
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you read the sensor from code?
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, sure, i read the sensor via the analog input. smiley-grin
Logged

Pages: [1]   Go Up
Jump to: