User Tools

Site Tools


project:lessduino:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
project:lessduino:start [2016/11/25 07:57] – ↷ Page moved and renamed from project:lessduino to project:lessduino:start ruzaproject:lessduino:start [2016/11/28 01:58] (current) ruza
Line 1: Line 1:
 ====== LessDuino ====== ====== LessDuino ======
  
-{{template>infobox|+{{template>:project:infobox|
 name=LessDuino| name=LessDuino|
 image=antiduino.png?200| image=antiduino.png?200|
Line 9: Line 9:
 status=active status=active
 }} }}
 +
 +~~META:
 +status = active
 +&relation firstimage = :project:antiduino.png
 +~~
  
 Interfacing simple electronics with computer WITHOUT ARDUINO :-) Interfacing simple electronics with computer WITHOUT ARDUINO :-)
  
-{{ soundcardswitch.jpg }}+{{ ..:soundcardswitch.jpg }}
  
 From time to time i want to interface few simple ad-hoc circuits with my computer and i do not want to use arduino for such trivial tasks. Arduino is much more than USB connected I/O port and i see no reason for using it for tasks which can be done using $2 soundcards... From time to time i want to interface few simple ad-hoc circuits with my computer and i do not want to use arduino for such trivial tasks. Arduino is much more than USB connected I/O port and i see no reason for using it for tasks which can be done using $2 soundcards...
Line 27: Line 32:
   * https://github.com/Harvie/Programs/tree/master/c/goertzel   * https://github.com/Harvie/Programs/tree/master/c/goertzel
  
-Note there are few more related projects like [[audioport]] for example.+Note there are few more related projects like [[..:audioport]] for example.
  
 ===== Sub-Projects ===== ===== Sub-Projects =====
 ==== Reading switches (PIR motion logging) ==== ==== Reading switches (PIR motion logging) ====
  
-After being inspired by [[brain_hacking]] project, i've decided that i want to log my motions during sleep for later analysis. I've had PIR motion detector which has quite simple analogue interface. You power it up using 12V and connect what you need to internal NC switch (relay that conducts electricity when no motion is detected and stop conducting for a monment when motion is detected). I wanted my sleep-motion log to contain real time clock. That would mean that i need to make arduino keep RTC and store lots of data, which is very inconvenient. Another solution is to connect arduino to Linux box and use it just to signal PIR sensor state while computer will be doing all the logging. This is much more convenient but wait! Do i really need arduino? I can connect PIR sensor using old keyboard or even my soundcard!+After being inspired by [[..:brain_hacking]] project, i've decided that i want to log my motions during sleep for later analysis. I've had PIR motion detector which has quite simple analogue interface. You power it up using 12V and connect what you need to internal NC switch (relay that conducts electricity when no motion is detected and stop conducting for a monment when motion is detected). I wanted my sleep-motion log to contain real time clock. That would mean that i need to make arduino keep RTC and store lots of data, which is very inconvenient. Another solution is to connect arduino to Linux box and use it just to signal PIR sensor state while computer will be doing all the logging. This is much more convenient but wait! Do i really need arduino? I can connect PIR sensor using old keyboard or even my soundcard!
  
 Well so i want to interface device which is acting as NC switch with my soundcard... If i connect it directly to microphone input of my soundcard i will probably get nothing more than clicks that will be quite hard to analyze and i will probably not be able to safely tell wheter switch is switched on or off. I had to take everything to another level. I can take some beeping sound generated by some kind of simple 555 oscillator, switch it using my switch and then record it. Sounds like a plan. But then i realized it again... OMG i still have the computer, i can use it to generate sounds for me. Well so i want to interface device which is acting as NC switch with my soundcard... If i connect it directly to microphone input of my soundcard i will probably get nothing more than clicks that will be quite hard to analyze and i will probably not be able to safely tell wheter switch is switched on or off. I had to take everything to another level. I can take some beeping sound generated by some kind of simple 555 oscillator, switch it using my switch and then record it. Sounds like a plan. But then i realized it again... OMG i still have the computer, i can use it to generate sounds for me.
Line 97: Line 102:
  
 And i've been even able to graph my motions using gnuplot to make it simpler to analyze: And i've been even able to graph my motions using gnuplot to make it simpler to analyze:
-{{sleepmotions.png?600}}+{{..:sleepmotions.png?600}}
 I think that some kind of periodicity of sleep cycle can be clearly seen in graph. Next step is to make software that will set my alarm to wake me up in some comfortable phase (the phase with lots of movements is when you can wake up full of energy) I think that some kind of periodicity of sleep cycle can be clearly seen in graph. Next step is to make software that will set my alarm to wake me up in some comfortable phase (the phase with lots of movements is when you can wake up full of energy)
  
project/lessduino/start.1480060642.txt.gz · Last modified: 2016/11/25 07:57 by ruza