This is my first instructable, so I hope everything is clear and hoping you find it interesting, and would appreciate any feedback, so here I go. I am sill testing this device with other people, but personally I have found my dream recall has improved dramatically, wow! some of the dreams are totally amazing.
WARNING. Because of the flashing Led this could pose a problem with people that are affected by epilepsy. One solution would be to connect a switch to the Led, therefore there would only be a sound as a dream trigger.
If any one is interested in this project I can sell a kit of parts or sell a complete and tested device. Please contact me for prices at. jeffbarnes311@googlemail.com
Description.
The device will scan the closed eye using infrared and when movement is detected(REM) the PIC microcontroller will flash an LED and produce a sound on a piezo. This should wake one up into a dream. Useful for Lucid dreaming or if one wants to better their dream recall. I have found using this device, my dream recall has greatly improved.
Operation.
After switching on the device there will be a delay of approximately 60 seconds, to allow one to settle into bed. Then the device will scan the closed eye three times, to check functionality, after this the device will stop scanning for three hours. It will then go into a cycle of scanning the eye then delay for 15 minutes until the device is turned off or the push button is pressed. If button is pressed the LED will illuminate then flash once after which there will be a delay of 30 minutes then scanning is resumed. This is to allow you to interrupt the cycle eg. sleep was interrupted so as to allow you to go back to sleep or can be used for a nap.
Setup mode.
1/ Keep push button pressed then turn on and release button, the LED will flash and piezo will sound, this is to allow adjustment of the LED light intensity VR1 and piezo volume VR2, also to check battery state of charge.
2/ Press button until LED only flashes and release, this will enter infrared functionality test.
3/ Pressing button again, the device will go into the main program or turn off device.
Summary of operation.
1/ When one is ready for sleep turn on device then count to 60(seconds approximately).
2/ Move the eyes under closed lids until the device has triggered three times. This is to test functionality.
3/ Device will go into a three hour delay until scanning starts.
4/ Then it will scan the eye, delay for 15 minutes and repeat until the device is turned off or the push button is pressed.
5/ If push button is pressed the Led will stay on until released then flash once, there will then be a delay of 30 minutes and continue as in 4/. The button can be pressed at any time.
6/Sweet dreams and or great lucids.
7/Turn off device with the slid switch. Good morning
Jeff Barnes
Remove these ads by
Signing UpStep 1PARTS LIST
Parts list.
R1 = 3K3 1/4 WATT
R2 = 10K
R3 = 5K6
R4 = 150R
VR1 = 5K PRESET
VR2 = 100K PRESET
C1 = 1000uF 6.3V ELECTROLYTIC
C2 = 100nF CERAMIC
C3 = 22pF CERAMIC
IC1 = 12F675 PIC MICROCONTROLLER
INFRARED PHOTO TRAN 3mm OR 5mm
INFRARED LED 5mm
5mm LED
PIEZO 20mm
SW1 = MINATURE SLIDE SWITCH
PB1 = MINATURE PUSH BUTTON
8 PIN DIL SOCKET
AAA BATTERY HOLDER FOR TWO AAA BATTERIES
SLEEP MASK
DOUBLE SIDED STICKY PADS X 2
STRIP BOARD 25 HOLES X 18 STRIPS
1mm HEAT SHRINK SLEEVING
TINNED COPPER WIRE FOR LINKS, 7 IN TOTAL.
SLEEP MASK
Jeff Barnes
| « Previous Step | Download PDFView All Steps | Next Step » |






















































The cost of two PICs and postage will be 11Euros.
Hope this is acceptable.
Regards,
Jeff
Say, I see that your were willing to sell of kits or even complete units. Are you interested in putting together one of these?
Glad you found the project interesting.
If you are interested in a kit this will cost 35 Euros including recorded postage and for a completed devise 70 Euros also postage included. Sorry I can not offer it at a lower price, the sleep mask is quite expensive.
Best regards,
Jeff
It would be even cooler if we could some how communicate with the machine to delay the cycle while we are lucid dreaming. For example a series of special eye movements.
Sorry for delay and thank you for your great comments. Your idea for a delay sounds good, but how long would you say the delay needs to be?
Can you upload the pcb file for the dream machine? I think it might be easier to just print the pcb and solder the components than doing it on a perfboard. I would appreciate it. Thank in advance.
Sorry for delay in contacting you and I hope Marche has answered your question.
I will try and get a flow chart together soon.
Thank you and all the best,
Jeff
Thank you for your reply. I am not familiar with the arduino, I will check it out and get back to you.
the underlying chip on the more recent revisions is an ATmega328, and with the bootloader you load your HEX files on to the chip with the same tool as plain old AVR programmers. IIRC, you'd need to write it with avrlibc if timing is important, as Arduino's library adds overhead. features like low power sleep modes and the watchdog timer require you to reprogram the chip's fuse (configuration bits held in EEPROM, I don't know why they're called fuses) settings, but unless you know _exactly_ what your doing, fiddling with fuse values is a great way to brick a perfectly good megaAVR.
I'm not saying the arduino isn't up to the job or berating it in any way, if it weren't for the simplicity of the thing I wouldn't have gotten into the world of embedded electronics, but porting it to Arduino kind of defeats the reason I'd go from PIC to AVR: power saving mode and the watchdog timer.
Thank you for the information with the Arduino, much appreciated.
Many thanks and all the best,
Jeff
I,m sorry but I've written it in machine code. Would a flow chart help? Do you know of a good tutorial for programing in C and what is hackerspace?
All the best,
Jeff
Thank you, and may you be the winner of this contest!
Pleased I was able to help you and greatly appreciate your kind comments. I hope all goes well if you decide to build this device. Please keep an eye on this instructable as I may upgrade the program at some time.
The sleep mask I used for this can be purchased on ebay, link
http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=280497599414&ssPageName=STRK:MEWAX:IT
Take care and all the best for the future,
Jeff
I saw the photos. What I ask, if you can to show somehow the position of the aforementioned infra red led and transistor, relating to the eye underneath. And, the 12f675 and 12f629 (which I got many to spare) are compatible, depending on the code. If I give the .hex to a 12f629, will it work ?
Thanks again.
I have added an extra photo of the templates in the construction section I have used for the positioning of the leds and photo transistor, these are shown from the inside of the mask, if you were to download this file the measurements on the photo will be a lot clearer. The leds should protrude approximately 3mm and the infra red led should angle slightly towards the photo transistor.
I have programed the 12f675 to allow for an analog input on pin 3, unfortunately the 12f629 has no analog inputs. I hope I have answered you questions sufficiently if not please let me know.
All the best, Jeff
I have also added another photo for the ideal positioning of the infra red led and photo transistor with relation to the eye. Hope this is also helpful.
Jeff
Thank you for your response. Yes I do use the device and have found my dream recall has increased significantly. To induce lucidity one would have to recognise the light and or sound cues in ones dreams and use them as a trigger, as described with the NovaDreamer machine. I have the infrared tran connected to the analog input of the PIC so is quite sensitive to eye movement as in REM and find it works very effectively. If you go to the construction section and scroll through the photos you will see a good photo of the sleep mask, which can be adjusted, infact I find it quite comfortable even with the dream machine attached and I am able to sleep on my side without any problems. I hope this is helpful. If you need any more help please do not hesitate to ask. Many thanks and good luck, Jeff
http://www.world-of-lucid-dreaming.com/novadreamer.html
Thank you for your response. Because the signal from the infra red photo tran is quite small I have used the analog input(pin3) of the 12f675. If you go to the construction section(step2) and scroll along the photos you will see the infra red transistor(top one 3mm) and led(5mm). There is also a photo of the visible led all are secured in place using supper glue. I hope this is helpful. If you need any more help please do not hesitate to ask. I will try and put a flow chart together of the program. Many thanks and good luck, Jeff
Auther Jeffxxx.
.
lol,
interesting idea, it could be useful for people that have trouble falling asleep rather than taking pills.
I would think that dreams are an extraction of information from the subconscious and it is up to us to interpret what the subconscious is trying to tell us.
Inception a good movie, but Lucid dreaming is much, much more than the film portrays. Check out the Internet on the subject. Thanks for your feedback.
Sweet dreams,
Jeff