Posts

Showing posts from October, 2013

The arduino can play a tune.

Image
Musical arduino. (from Arduino.cc) Play a Melody using the tone() function This example shows how to use the tone() command to generate notes. It plays a little melody you may have heard before. Hardware Required Arduino board 8 ohm "small" speaker 100 ohm resistor hook-up wire Circuit image developed using Fritzing . For more circuit examples, see the Fritzing project page Connect one terminal of your speaker to digital pin 8 through a 100 ohm resistor. Connect the other terminal to ground. Schematic click the image to enlarge Code The code below uses an extra file, pitches.h. This file contains all the pitch values for typical notes. For example, NOTE_C4 is middle C. NOTE_FS4 is F sharp, and so forth. This note table was originally written by Brett Hagman, on whose work the tone() command was based. You may find it useful for whenever you want to make musical notes. The main sketch is as follows: /* Melody Plays a melodycircuit: ...

Getting the temperature.

Image
Decided to put some old heat sensors work with linux via Digitemp. The command names have changed a bit. From two of the more popular sites: (note: 25 pin connectors will use different connections.) http://hacknmod.com/tag/serial-port/ http://hackaday.com/tag/serial-port/ http://martybugs.net/electronics/tempsensor/ Temperature sensing with linux:  http://pihost.us/~stacato/digitemp/ You should be able to install digitemp from the repo without have to download the software and manually installing it. Debian based: $ sudo apt-get install digitemp Fedora based: $ sudo yum install digitemp ——————————————————- $ sudo apt-get digitemp Once inststalled You can use $ sudo digitemp_DS9097u -s /dev/ttyUSB0 -w “ Now, to read the temperatures. You’ll want the digitemp package, which is pre-packaged in Debian and probably most other Linux distributions. Once it’s installed, you’ll need to know what program to use. Several are available for different DS masters, but...

I've got gas...

Image
Couple of ideas for saving energy. Using HHO for the grlll and also for making electricity that highly reduces the need for fossil fuel.

I've got gas...

Image
Couple of ideas for saving energy. Using HHO for the grills and also for making electricity that highly reduces the need for fossil fuel.

Can not hear you...

Image
Working on a microcontrolled audio switcher you can access from the web. Still have to add 32 audio lines.  Dear #Ubuntu . Some of us use command line only machines. so the loss of alsamixer is a reaL PAIN. Gnome-alsamixer is useless for us. Guess i will have to look for the source and compile it for the system. Or just wait and  replace u12.04 with a real linux. Recently upgraded the server to U12.04. Would have preferred to replace it with something else, but there are too many web applications to reinstall. The upgrade seemed to go well. Now that have had a chance to use the machine, there apps missing that WERE installed before the upgrade. So now if is a matter of reinstalling some programs. Like to use the system without a gui. that is everything is done from the command line. That might seem like a pain, but it really is easier. That is especially tru if you have a lot of jobs scripted as we do. Went to fire up some music to play from the serv...

Good vibrations.

Image
Learning electronics. This was the first kind of circuit I ever put together. Decided to recreate it the astable multivibrator. Discrete parts can be a bonus sometimes.   Schematic: Parts used: 2 - leds (different colors adds more mystique) 2 - 330 ohm resistors 2 - 10k ohm resistors 2 - 2n2222 transistors (npn) 2 - 100uf  50v Electrolytic capacitors 1 - 3 volt battery Blinks fairly fast. You can exhange parts to see what it can do. The actual circuit:   What should happen: (different circuit, but essentially the same still using npn transistors.)

Good vibrations.

Image
Learning electronics. This was the first kind of circuit I ever put together. Decided to recreate it the astable multivibrator. Discrete parts can be a bonus sometimes.   Schematic: Parts used: 2 - leds (different colors adds more mystique) 2 - 330 ohm resistors 2 - 10k ohm resistors 2 - 2n2222 transistors (npn) 2 - 100uf  50v Electrolytic capacitors 1 - 3 volt battery Blinks fairly fast. You can exhange parts to see what it can do. The actual circuit:   What should happen: (different circuit, but essentially the same still using npn transistors.)