Posts with «arduino» label

Replacement controllers for slot car racing

That blur on the right is a car racing into the frame. But look around the rest of the image and you’ll see the area is littered with extra hardware. [Matthew], [Doug], and [Barry] have been hard at work adding extra functionality and replacing the original controllers on this Scalextric slot car setup. So far it looks like their build log has not caught up with all the work they’ve done. We’re hoping to learn more details as they have time to write about them (this is coursework at University so we’re sure there’s a lot on their plates). But for now there are several videos and a gallery of images to drool over.

The cars are controlled by the voltage level in the track. The team replaced the stock controllers with a Raspberry Pi. It manages that voltage using Pulse-Width Modulation via MOSFETs. This allows the races to be automated but also makes it simple for a human operator to use just about any input device imaginable to control the cars. For good measure they also added a lap counter that uses an IR LED and detector to sense when a car passes the finish line.

After viewing several of their videos we think the goal of the project is to log the fasts times without sending the cars flying off the tracks during the turns.


Filed under: Raspberry Pi, toy hacks
Hack a Day 23 Jan 19:01

Adafruit Gemma stuffs a wearable Arduino platform into a one-inch disc

Adafruit's Flora wearable platform is barely a year old, yet it already has a little sibling on the way -- and we do mean little. The newer Gemma is Arduino-programmable over USB like its relative, but measures just over half the size of the Flora at an inch in diameter. It's even bordering on cute, as far as circuit boards go. Before developing any grand visions of wearable computers, though, be aware that Gemma's features scale down with its size: there's only three input/output pins, and a limited amount of memory won't let it handle more than about a dozen of Adafruit's NeoPixel lights. All the same, any aspiring tailor willing to trade flexibility for subtlety in a costume will likely want to sign up for notification of the Gemma's in-stock date at the source link.

Filed under: Wearables

Comments

Source: Adafruit

Engadget 22 Jan 14:32

TRUE ANALOG AUDIO VOLUME CONTROL (T.A.A.V.C.).

 

More:   Video1   and   Video2

Now my Arduino can precisely measure audio input (VU meter),   and obviously, next thing that comes to mind right after measurements, is regulation or control. There are many different ways how to electronically adjust audio volume or level of AC signal.  I’ll name a few:

  • Specifically design IC, Digital potentiometers.
  • Mechanical potentiometers, driven by servo / motors.
  • Vacuum tubes amplifiers in “variable-mu” configuration.
  • Resistive opto-isolators.

First category (#1) fits nicely for arduino project. But it’s not interesting to me. My apologies to someone, who was searching an example of interface between arduino and digital pot. Other people don’t tolerate semiconductors in audio path ( tube sound lovers ). Third option would make them happy, only (#3) requires high voltage and difficult to accomplish on low hobbyist budget, so I left it out of the scope. Mechanical pot (#2) would be good solution to satisfy Hi-Fi perfectionists and arduino fans. The same time response time of mechanical parts is too slow, verdict – discarded.  (#4) have been in use since 1960s, but would you like your lovely music to be adjusted by highly toxic CdSe / CdS ?  I don’t think so. Wiki says opto-isolators have low THD distortion level, less than 0.1%. Probably true, but apart from technical aspect, there is always psychological, poisonous CdSe affects my perception.

How about variable resistor in it’s simplest form – tungsten wire? Where you can get one? In the electrical bulb. Perfect material for audiophiles – where distortion could get into ? – It’s pure metal ! And here is my design of the “basic cell” – True Analog Audio Volume Control (T.A.A.V.C.)

As you can see, cell consists of 5 bulbs plus 1 resistor. All elements form 2 attenuation stages, basically – voltage dividers with variable resistors. Resistive values of bulbs proportional to temperature, which is easy to control passing DC current through. To make it work with the biggest possible dynamic range, middle bulb is also heated up by current flow from two differential control lines / phases.

 Hardware prototype / Proof of Concept.

Differential Power Amplifier (PA) IC LM4863  is used as DC current source for control lines. Circuitry powered from 5V regulated switching power supply (4A).  Bulbs – clear mini lights, 2.5V, approximately 200 mA. Cold state resistance about 1.2 – 1.5 Ohm, hot state resistance is rising up to 15 Ohm.  Volume regulator could be connected to any audio source with output impedance no more than 32 Ohm, for example, headphones output. For test I used second channel of the PA, that shown in “optional” box on the left side. Second channel is a “nice to have” feature  in stereo version of the project, when both channels would drive two separate TAAVC cells, so using it as a “buffer” amplifier may be not an option.

Results.

  Measured attenuation  range of the “basic cell” is  20 dB, or 10 x times.

 to be continue…

 Chart, PWM (Voltage) to Attenuation:

 Quite interesting, isn’t it? I was not expecting it’s to be linear, but changing direction surprised me. There is one things, which could explain such abnormality, is that when voltage on the control lines 1 and 2 ( LM4863 outputs ) is approaching power rails, output impedance of the power amplifier is increasing, and consequently, attenuation characteristics of the basic cell deteriorate. It means, that in order to keep attenuation curve gradually declining, more powerful PA necessary. For now, I limited PWM to 0 – 200 range.

I’m thinking, STA540  powered from +12V, and 5 V bulbs would make sense to try next time.  Probably, replacing middle bulb for less current hungry, will increase max attenuation per cell up to 30-35 dB.

 O’K, after I get this data, how could I “straighten it up” for practical use ?  Volume control device, could be linear or logarithmic, but chart doesn’t resemble nether of this. And this is exactly what I need Arduino for.

Linearization.

 If you, by chance, have read this page, than you know how to do this part. Polynomial approximation. Unfortunately,  2-nd degree polynomial I used last time is not enough for VERY non-linear curve like I have. So, I “upgraded” my calibration subroutine (method: LEAST SQUARES) up to 3-rd degree:

void calibrate()
{
 //Least squares 3-rd degree polynomial coefficient calculation
 float arr[10][5] ={{0},{0}}, err[10] = {0}, coeff[10] = {0};

 err[0] = 10;
 for(uint8_t i = 1; i < 7; i++)
 {
  err[i] = 0;
  for(uint8_t j = 0; j < 10; j++)
  {
   err[i] += pow(level_table[j], i);
  }
 }

 for(uint8_t i = 0; i < 4; i++)
 {
  for(uint8_t j = 0; j < 4; j++)
  {
   arr[i][j] = err[i+j];
  }
 }

 for(uint8_t i = 0; i < 4; i++)
 {
  arr[i][4] = 0;
  for(uint8_t j = 0; j < 10; j++)
  {
   if (i==0) arr[i][4] += calibration[j];
   else arr[i][4] += calibration[j] * pow(level_table[j], i);
  }
 }

 for(uint8_t k = 0; k < 4; k++)
 {
  for(uint8_t i = 0; i < 4; i++)
  {
   if ( i != k )
   {
    for(uint8_t j = (k + 1); j < 5; j++)
    {
     arr[i][j] -= ((arr[i][k] * arr[k][j]) / arr[k][k]);
    }
   }
  }
 }

 union split_float {
 uint16_t tegri[2];
 float loatf;
 } sf; 

 for(uint8_t i = 0; i < 4; i++)
 {
  coeff[i] = ( arr[i][4] / arr[i][i]);
  sf.loatf = coeff[i];
  store_entry(( 2 * i ), sf.tegri[0] );
  store_entry(( 1 + (2 * i)), sf.tegri[1] );
 }
}

Procedure takes 10 data samples as input, calculates 4 coefficients and stores them in EEPROM memory.

VU meter based on Arduino UNO ( in minimum configuration Arduino and DC offsetting circuit ) should be connected right to T.A.A.V.C. output. Everything works in automatic mode, with results printed on serial monitor for review. Stable AC input is necessary, which easy to get from any PC sound card based signal generator, recorded media file or lab sine-wave generator. Arduino also provides PWM for T.A.A.V.C       via pin D3 (TIMER2 OCR2B).

Link to download Arduino UNO sketch: T.A.A.V.C.

to be continue…audio compressor, .

Last part,

Dynamic Range Compressor.

There are two important parameters defined in the beginning of the sketch:

#define          CMP_THRE                     -10             // Compression Threshold 
#define          CMP_RATE                        4             // Compression Ratio 4 : 1

Threshold and Ratio. I’m not into explaining all bunch of the details about compressors or what for do you need one, rather forward you to this link.  I only want to say, that I didn’t find any evidence that someone ever used electrical bulbs as compressors “engine”. So, this is my idea, and my implementation.

Technical specification of this design is quite modest, having close to 20 dB maximum attenuation and setting ratio to 2:1, threshold couldn’t be set lower than -40 dB. Good news, that for practical use in home environment it’s  really unlikely, that you ‘d need more. It’s also should be enough to solve a problem with annoying TV or Radio commercial / advertisement.

Compare to VU Meter project, I’ve made a few “relaxing” changes to the code, as it appears there are no strict industry standard on Dynamic Range Regulation. I reduce sampling rate down to 10 kHz,  and  split Low Pass Filtering in two sections. One is the same, as in VU Meter, inside sampling interruption subroutine, only with lower time constants. First LPF section is responsible for “shaping” attack and decay timing. Using quite inertial electrical bulbs in the project, reduce importance of this timing. Here attack and release mostly defined  by thermal responsiveness of the bulbs, which isn’t very high. Decreasing software LPF time constants helps to improve sensitivity. Other LPF section included inside LCD drawing function, works to overcome display slowness, suppressing LCD flickering. Other changes from simple VU Meter, is that finally I “scaled” everything correctly,  and “0″ db corresponds exactly to 1.228 V RMS at the input. Threshold level -10 expressed in dB as well. You may see threshold “mark” above the log scale. Indicator “needle” just below it, small 5×2 pixels only, but you can make it bigger if you wish.

I already described calibration procedure, to do it right, you need to connect arduino to output of the TAAVC cell.  Polynomial coefficients and minimum / maximum constants stored in EEPROM, so you don’t have to do this procedure each time after power cycling.  In normal mode arduino getting input measurements from the cell input:

Finished.  I’ll do a video “on demand” -);  If I had time…

Arduino UNO sketch:  Audio Dynamic Range Compressor. (TAAVC part 3).


MakerLab reviews the Arduino Starter Kit

When we released the Arduino Kit, we knew that we are equiping the closet-wannabe-makers to start planning for world domination. Now it has the stamp of approval from MakerLab too!

Make Noise With The New Arduino Kit is a project by Alessandro Contini (@CNTLSN) and Alberto Massa (@nkint)

The above video explores the basic components of the kit and things that a new-maker would want to start with, including a light controlled theramin, and by theramin, I really mean exploring every possibe way to make impressive noises from one simple experiment.

Sounds fun? Do write to us, what you made out of your starter kit. We may feature you next

Via:[MakerLab]

Arduino Blog 22 Jan 11:45

Object Avoidance Robot MK1

Primary image

What does it do?

Navigate around via ultrasound

Hello everyone. My ultrasonic sensors arrived (4 in total) but instead of using them on my scrapbot, i found some 360 degree servos that i had gathering dust from a previous project.so i decided to make use if them. The scrapbot was too loud because of the build materials so i settled with this. 

In the video it has the distance set to 30cm. 

Materials:

Body: Tamiya universal board (leftover from an onld tank project)

Cost to build

$35,00

Embedded video

Finished project

Complete

Number

Time to build

5 hours

Type

wheels

URL to more information

Weight

1000 grams

read more

Brute force finds the lost password for an electronic safe

[Teatree] tells a sad, sad story about the lost password for his fire safe. The electronic keypad comes with a manufacturer’s code as well as a user selected combination. Somehow he managed to lose both of them, despite storing the user manual safely and sending the passwords to himself via email. He didn’t want to destroy the safe to get it open, and turning to the manufacturer for help seemed like a cop-out. But he did manage to recover the password by brute forcing the electronic keypad.

There is built-in brute force protection, but it has one major flaw. The system works by enforcing a two-minute lockout if a password is entered incorrectly three times in a row. But you can get around this by cutting the power. [Teatree] soldered a relay to each set of keypad contacts, and another to the power line and got to work writing some code so that his Arduino could start trying every possible combination. He even coded a system to send him email updates. Just six days of constant attacking netted him the proper password.


Filed under: security hacks

Insert Coin: Arduino-compatible Pinoccio microcontroller sports battery, WiFi

In Insert Coin, we look at an exciting new tech project that requires funding before it can hit production. If you'd like to pitch a project, please send us a tip with "Insert Coin" as the subject line.

It's been said that imitation is the sincerest form of flattery. Improving on a good idea, however, is truly the ultimate homage, according to the makers of the new Pinoccio microcontroller. Inspired by the Arduino, the brain trust behind the Pinoccio decided to take the stuff they liked about the popular platform -- ease of programming and low cost -- and add some features to make it even better. These include a rechargeable battery, a temperature sensor and a built-in radio that allows one Pinoccio with a WiFi shield to communicate wirelessly with other Pinoccios. The microcontroller also delivers performance that stacks up well with an Arduino Mega but at a smaller size -- the Pinoccio only measures a couple of inches long and an inch wide. The project is currently trying to raise $60,000 at Indiegogo, with supporters netting the standard Pinoccio by pledging $49 and a microcontroller with a WiFi shield for $99. For more details, feel free to check out the video after the break or peruse the project's Indiegogo page by clicking at the source link.

Previous project update: The Lomography Smartphone Film Scanner was apparently ready for its closeup. The Kickstarter project more than tripled its $50,000 goal with two more weeks to go.

Filed under: Misc

Comments

Source: Indiegogo

Permaduino makes your Arduino projects permanent (video)

Arduinos are fun to tinker with, but there's one problem. Once you've built something cool, you pretty much have to tear it down to use your board for another project. Sure, you can always buy multiple Arduino boards or proto shields, but what if you want to turn your creation into something a bit more permanent and a lot more compact? Say hello to Permaduino, a small battery-powered Arduino prototype board that just launched on Indiegogo. It features an Atmega328P (natch), two AAA battery holders with a 3 to 5V DC-DC converter (up to 180mA), a 25-column breadboard with VCC and ground, plus FTDI, AVR-ISP and USB interfaces. Best of all, Permanuino conveniently fits inside a standard 8mm videotape case (as long as you don't mount large components on that breadboard). Interested? Hit the break for the Indigogo link and campaign video.

Filed under: Misc

Comments

Source: Permaduino (Indiegogo)

Engadget 20 Jan 17:09

Exceptionally Hard and Soft meeting at Berlin 28-30 December 2012 (Part2)

Arduino at EHSM 2012

We mentioned earlier about the very special geek way of entering new year 2013. So here is a first hand, un-altered account of Tricia Blickfeldt who participated in the Arduino workshop for kids held there. We now are richer by one more arduino user! Yay!

“Before I tell you about the conference, I have to say that I work in Special Education at an elementary school. I am surrounded by children all day every day. Many of them with disabilities. I am not an engineer. I am not a hacker. My gifts do not include technical things. I came to the conference as a friend of one of the presenters. Many of the presentations were foreign to me. I felt very welcomed though and learned a lot. The staff were all very helpful and kind.

I was excited and nervous to participate in the arduino workshop. My friend told me that the class was created for kids with no experience. This was comforting. Kid things are right up my alley. And I certainly had no experience. There had been some last minute changes in teachers for the class, but I was very impressed with the guys who presented the workshop. It was clear that they knew and were very experienced in what they were teaching. When we arrived and there were no kids and, much to my dismay, they changed up what/how they were going to teach. I was soon put at ease though as they began at the beginning and explained what arduino is, what it does, and why it is so amazing and useful. They adjusted to their audience without making it more complicated.

I got really anxious again as they started handing out several little parts for us to build on the arduino board. The directions however were clear and precise. Illustrations were shown and questions were welcomed and answered. I set up an LED light and programmed it to go! The programming was not difficult because we just had to look up the codes for the task we wanted and apply them to what built. To do this we had to name the light in the program so it knew where to apply the command.

Then we added a button and programmed that to make the light go when we pushed it! We had to make some modifications to the code to add the button. I was so excited. We had some time to add more lights and see what we could make them do. I lined them up and programmed them to flash in a row and then back! This was a little trickier to program because we had to name each light individually and tell it to go in sequence. Who knew that I was capable of that?

Finally, we added a knob to control the speed of the blinking. This was definitely the hardest for me to understand. We had to set a delay that corresponded to the position of the knob. I was so excited that I took pictures and videos to prove that I really did it and that it really worked!

I was very impressed at how professional the presentation was. It was given in a way that created meaning and understanding without being overwhelming. It allowed me to create things that I hadn’t ever imagined myself doing. I am motivated now to find a project to work on using what I learned in the arduino workshop.

The entire conference seemed to be a lot like the workshop. It was very pleasant and friendly to all who were there regardless of background or expertise. It was professional and the presenters were all very knowledgeable. I learned a lot and enjoyed my time at the conference.”

PS: Many many thanks Tomek and his friend, for filling in the last minute!

Arduino Blog 20 Jan 12:34

Continuous rotation servos acting wierdly

As some of you may know I am in the process of making an R2-D2 like robot.

The base of the robot has two drive wheels and two castor wheels. The drive wheels are powered by continuous rotation servos.

The wiring is as follows:

7.2V Ni-MH 1800mAH battery > Regulated down to 6.6V > Powering the two servos > Grounds connected to Arduino > Signal cables connected to Arduino.

read more