Showing posts with label products. Show all posts
Showing posts with label products. Show all posts

Wednesday, May 02, 2012

Arduino Based Auto Timer / Stop Watch Timer for stroking time Measurement

See my Instructables below for full version of this article
The Need:
Last week around at work I had another usual un-usual  problem to face with.  Having to make lots of mechanisms n components to work with-in seconds or fracs at times I kind-of knew this was always coming.


And invariably so my poor mind couldn't think of anything but Arduino for a handy solution that should be compact, flexible, highly customizable, rugged and most importantly easier to work around.

Step 1The Problem:


i
The Problem:
What we had is an arm moving around from an actuator which we would like to tap with some contact type micro switces (limit switches) to give a feed-back signal as the awkward figure suggests.

Step 2Components:


i
Components:
I franatically searched for the components from the Junks I always treasured with the hobby kit coming-in handy..


LCD Display (16x2) - 1
Micro Switches - 2
Hook-up wires for (bread board) - Plenty (see Fritizing schematic for actuals)
Bread Board - 1 (for Prototyping)
LED - 1 (fok blinking indication)
Resistors 330 & 2K - 1 each
potentiometer 4k - 1  ( I had used one 2k Resistor and a 4K POT in comb. instead of a 6k pot to control the display as it came so handy from the junk parts)

Arduino - 1 (Duemelanove is what I had)

Step 3The Methodology


i
The Methodology
  • IMG_5639.JPG
  • IMG_5633.JPG
  • Image1256.jpg
  • Image1255.jpg
Now that all I/O's are wired in order as per the schematic, it pretty much works-out itself and it all boils down to the programming now..


I had used the StopWatch library to evoke the timer and initiated the millis() function to record time step value as soon as Arduino is started.



But what I need is just a differential timer with the simple math which gives us the time on air or otherwise.



All that I did is declared some run-time variables and do some math to display the difference value to show only the time between micro-switches getting energised. Otherwise to display the time correctly in the format is similar to Dan Thompson's method as it only records the time values in millis and we have to convert the values to sec, min, hr and microsecs.



The other problem i encounter is the sign reversal as arduino cannot handle large buffer. I finally managed to overcome this error by using the unsigned longint as integer data type.

Step 4Display Shield


i
Display Shield
The display shield is constructed of pretty much the same components over a matrix board with pin rails for piggy-backing Arduino.


Had used some old components from an electronic choke for compacting

Step 5Arduino Sketch - Programming

Final sketch\code for Arduino below:
/*
Sketch \ Code by Chuppandi aka Subu
Chuppandi@gmail.com
www.chuppandee.blgospot.com
*/


#include
LiquidCrystal lcd(7, 8, 9, 10, 11, 12); // LCD pins decleration
int switchPin1 = 3;// switch1 is connected to pin 3
int switchPin2 = 2;// switch2 is connected to pin 2
int ledPin = 13; // LED is connected to pin 13 in arduino
int val1;
int val2;
int frameRate = 500;                // the frame rate (frames per second) at which the stopwatch runs - Change to suit
long interval = (1000/frameRate);   // blink interval
char buf[15f00];                       // string buffer for itoa function
unsigned long starttime = 0;
unsigned long endtime = 0;
unsigned long lasttime = 0;
unsigned long currenttime = 0;
StopWatch sw_millis;    // MILLIS (default)
StopWatch sw_micros(StopWatch::MICROS);
StopWatch sw_secs(StopWatch::SECONDS);
void setup() {
    lcd.begin(16,2);
    pinMode(switchPin1, INPUT);
    pinMode(switchPin2, INPUT);
    pinMode(ledPin, OUTPUT);
    Serial.begin(9600);
    sw_millis.start();
    sw_micros.start();
    sw_secs.start();
}
void loop() {
  val1 = digitalRead(switchPin1);   // read input value and store it in val
  val2 = digitalRead(switchPin2);   // read input value and store it in val
    if (val1 == LOW && val2 == LOW)
   {
    digitalWrite(ledPin, HIGH);   // turn LED on
    currenttime = (sw_millis.elapsed() - lasttime) ;
    Serial.print("sw_millis=");
    Serial.println(sw_millis.elapsed());
    Serial.print("sw_micros=");
    Serial.println(sw_micros.elapsed());
    Serial.print("sw_secs=");
    Serial.println(sw_secs.elapsed());
    lcd.clear();
    lcd.print("SECS:");
    float sec = sw_millis.elapsed()/10;
    lcd.print(sec);
  int elapsedMinutes = (currenttime / 60000L);
  int elapsedSeconds = (currenttime / 1000L);
  int elapsedFrames = (currenttime / interval);
  int fractionalSecs = (int)(elapsedSeconds % 60L);
  int fractional = (int)(elapsedFrames % frameRate);       // use modulo operator to get fractional part of 100 Seconds
   fractionalSecs = (int)(elapsedSeconds % 60L);        // use modulo operator to get fractional part of 60 Seconds
  int fractionalMins = (int)(elapsedMinutes % 60L);        // use modulo operator to get fractional part of 60 Minutes
   lcd.clear();                                         // clear the LCD
lcd.print("TIME:");



   if (fractionalMins < 10){                            // pad in leading zeros
      }
    lcd.print(itoa(fractionalMins, buf, 10));       // convert the int to a string and print a fractional part of 60 Minutes to the LCD
      lcd.print(":");                                 //print a colan.
if (fractionalSecs < 10){                            // pad in leading zeros
      lcd.print("0");                                 // add a zero
      }
lcd.print(itoa(fractionalSecs, buf, 10));          // convert the int to a string and print a fractional part of 60 Seconds to the LCD
   lcd.print(":");                                    //print a colan.
if (fractional < 10){                                // pad in leading zeros
      lcd.print("0");                                 // add a zero
      }
lcd.print(itoa(fractional, buf, 10));              // convert the int to a string and print a fractional part of 25 Frames to the LCD




    lcd.setCursor(0, 1);



    endtime = currenttime;
    lcd.print(sw_millis.elapsed());
    lcd.setCursor(0, 1);



    lcd.print("us=");
*/
  delay(10);
}
// if (val1 == LOW){
//       digitalWrite(ledPin, LOW);}
else{
  lasttime = sw_millis.elapsed();
//  endtime = (sw_millis.elapsed() - starttime);
//  endtime = (currenttime - starttime);
digitalWrite(ledPin, LOW);
  int elapsedMinutes = (endtime / 60000L);
  int elapsedSeconds = (endtime / 1000L);
  int elapsedFrames = (endtime / interval);
  int fractionalSecs = (int)(elapsedSeconds % 60L);




int fractional = (int)(elapsedFrames % frameRate);       // use modulo operator to get fractional part of 100 Seconds
int fractionalMins = (int)(elapsedMinutes % 60L);        // use modulo operator to get fractional part of 60 Minutes
lcd.clear();                                         // clear the LCD
lcd.print("TIME:");



   if (fractionalMins < 10){                            // pad in leading zeros
      }
    lcd.print(itoa(fractionalMins, buf, 10));       // convert the int to a string and print a fractional part of 60 Minutes to the LCD
      lcd.print(":");                                 //print a colan.
if (fractionalSecs < 10){                            // pad in leading zeros
      lcd.print("0");                                 // add a zero
      }
lcd.print(itoa(fractionalSecs, buf, 10));          // convert the int to a string and print a fractional part of 60 Seconds to the LCD
   lcd.print(":");                                    //print a colan.
if (fractional < 10){                                // pad in leading zeros
      lcd.print("0");                                 // add a zero
      }
lcd.print(itoa(fractional, buf, 10));              // convert the int to a string and print a fractional part of 25 Frames to the LCD
    lcd.setCursor(0, 1);
    lcd.print("ACTUATOR TIMER");
}
}
// End of the program

      lcd.print("0");                                 // add a zero

fractionalSecs = (int)(elapsedSeconds % 60L);        // use modulo operator to get fractional part of 60 Seconds

    lcd.print(sw_micros.elapsed());

/*  lcd.print(" ms=");

    lcd.print("ACTUATOR TIMER");

      lcd.print("0");                                 // add a zero

#include

Step 6Packaging


i
Packaging
  • Image1285.jpg
  • Image1286.jpg
Packaging is always fun.. Just pick-up whatever you could come up with from the mighty treasure junks... you can make wonders...


Do visit my space for more updates on my Arduino erector kit.

See my Instructables below for full version of this article
http://www.instructables.com/id/Arduino-Based-Auto-Timer-Stop-Watch-Timer-for-st/


Tuesday, September 30, 2008

DIY methanol powered scooter functional

With the importance of an alternate source of fuel rising steadily, many of us might wonder if methanol could be used as a fuel, though it is highly volatile and inflammable. Recently, a member on WebX took up a project to build a methanol powered homemade scooter. The first version had a prop and a 10cm thundertigre methanol glow engine, which didn’t work too well. In the second version, he changed the engine to the more powerful OS60 MAX without any props. However, this was too big for a scooter of this size. In the third and final version, he changed the engine shaft to 23mm diameter. A simple homemade filter was used, and the engine board is made of a 10mm thick alu arm, which allows flexibility. This version reduces the size of the engine, and there are no over-heating problems. Now, such things may not be legal to drive on our streets but then, it is always nice to know how things work, and they could set the stage for something legal to be manufactured.

Tuesday, September 02, 2008

Garmin Edge 705 GPS Offers Maps and Metrics for Data-Happy Cyclist

Garminedge705001

Garmin Edge 705 GPS



Type-A training tweakers, metrics maniacs, peripatetic two-wheeled geo-cachers and the geographically challenged now have something to collectively rally around: the Garmin Edge 705. This latest fitness offering from the GPS giant has more than a little somethin' somethin' for the can't stay put, always get lost, urban treasure hunting, serious bike training, and it's-the-journey-until-you-can't-find-the-destination types. The Edge 705 combines (take a deep breath) GPS maps and navigation, heart rate, cadence and power output into a palm of your hand wireless unit. It can display up to 16 separate metrics during the ride and combined with the included software and web-based apps it becomes an incredible tool for social networking, exploration and serious training analysis.



From a gander at the spec sheet, it seems setup and orientation would take awhile, but it turned out to be a breeze straight out of the box. You don't even have to calculate your wheel dimensions; it figures that out for you. Despite having to decipher some thick cyclist jargon, I was rolling in less than an hour -- map telling me my location and plotting a course to the trailhead while spitting out vitals all along the way.



That was just the appetizer because data readout, collection and save-your-ass navigation are just part of the equation. Connected to your Mac or PC back at the lodge, the Edge 705 offers a myriad of ways to breakdown cycling actions that you've done. The included software (called Garmin Training Center) is very serviceable and helps you track courses, training regimes, and the mass of recorded data. And if you want to know what others around the globe are up to, Garmin's recent acquisition, Motion Based, is definitely for you.

Garminedge705003a
Hatched back in 2003 by outdoor data junkies Clark Weber and Aaron Roller, Motion Based
is a two-tiered site that combines the number crunching capabilities of
Garmin Training Center with a global community of GPS aficionados who
want to share their adventurous exploits. Users can easily upload their data to the Motion Based site and share activities. So let's say you're heading for France and want to get your Lance Armstrong on at the fabled L'Alpe d'Huez. No problem, just pick one of the many L'Alpe d'Huez rides uploaded by users on the site, click on "download to device" and you’ve got the whole course on your unit with turn-by-turn directions. The opportunities for fun and exploration are endless.


Think of a destination, search the more than 3 million activities in the database, download your choices to the Edge 705 and off you go on a magical tour sans mystery. Presently a separate web
application, Motion Based will be folded into the Garmin Connect site by September with a more robust and feature-laden platform.



For the power-hounds out there, Garmin has embraced the open source ANT+Sport wireless standard. This 2.4 GHz frequency is a low power, totally locked-in to your device protocol that like Bluetooth, seems to be taking some time to get traction. It makes sense that the powermeter
providers -- SRM, PowerTap, Ergomo, iBike and Quarq among them -- are taking their time since the Garmin co-opts their proprietary hardware, but it seems sensible and inevitable because the Edge 705 is a unifying device, and from our experience, is best of its breed. If you want the whole shootin' match right now, SRM is the best choice and the most expensive. Quarq's Cinq-O crank-based bolt-on should be on the market by the time you're reading this, although with limited crank compatibility. I wasn’t able to test the Edge with a powermeter, but
that’s coming, so keep an eye out on wired.com for a power update.

Over the course of a couple weeks I've put in more than 40 hours on the road and trail with the 705 and I found it to be incredibly accurate, even in close quarters with other bike-borne wireless electronics. It's righted my course a few times and has become an invaluable training
tool, enabling me to analyze ride and race data over a couple months and realize marked improvements. At the end of the ride, the Garmin Edge 705 seems to be the Holy Grail for cycling enthusiasts. It tells you where you are, points the way to a destination, gets you home and provides every bit of data you need to become a fitter cyclists -- if that's your thing. And in 20 years of reviewing god knows how many gadgets, this is one of the dozen or so for which I'd gladly plunk down my own dough. So if you see me tooling through the trees or on some deserted twisty with it aboard my Specialized, you'll know I put my money where my gob-smacked mouth was. —Jackson Lynch

WIRED Detailed maps and directions are spot-on. GPS reception is excellent even in heavily wooded areas. Software and web app integration are a boon to digit crunchers.

TIRED Needs capability for more than three bikes. CD-ROM user manual needs more detail. Should come with a glare-free screen skin. Must run the battery all the way down before the first charge or you'll only get about three hours of use.

$650 as tested, garmin.com

Monday, August 04, 2008

Hasselblad unveil their 50-megapixel H3DII-50 camera

Hasselblad H3DII-50



For those of you who aren’t into the camera scene, the Hasselblad company has been making some of the best cameras for many proud generations. In fact, these guys have been making cameras since photography was invented. If Hasselblad cameras are gourmet food, then all other cameras are like McDonalds.



The company’s newest flagship camera is the H3DII-50. It is so named because it has 50, count ‘em, 50-megapixels. It also features Kodak’s 36 x 48mm sensor which is about twice the size of the largest 35mm sensors.



Other features are improved controls and functionality, better sensor cooling, a new and more intuitive interface, plus a bright 3-inch display. It also has a terrific assortment of large and bright viewfinders, and a wide range of HC and HCD lenses.



Like I said, Hasselblad cameras are the gourmet of cameras, and this is the high priced food that you would get at a high-priced restaurant. Hasselblad cameras are definitely “for professionals only”, and the best photographers will probably trying like mad to get their hands on the H3DII-50 when it comes out in October. They probably pay top dollar for it, too.


Via [Engadget]

Logitech launches Tri Color Mouse for this I Day


We share the feeling of patriotism. We don’t mind fighting against terrorism, standing in the theater for the national anthem or even hoisting a flag in our office but using a mouse to show how patriotic we are doesn’t seem to work for us. Logitech’s brainy marketing team decided to come up with something unique to appeal to the Indians and voila, here is a mouse with Indian tri colors sans the Ashoka Chakra.


Nothing extraordinary here except the visual appeal. And if it triggered your patriotic senses, head over to a retailer to grab one for Rs. 640 ($15).

Saturday, August 02, 2008

Dell Hybrid Desktops

For nearly two decades now we haven't seen any innovation in design from makers of Wintel PCs or laptops. Over the last few years it has been solely Apple that was coming out with cool designs - whether it was Mac Mini or Macbook Air. So I was happy to see finally a PC manufacturer investing on design. I am talking here about the new Dell Hybrid desktops. Check them out they don't seem to have compromised on the technical specifications either which seems to include everything you may want in an average desktop PC - Intel Core 2 Duo, 4GB RAM, Vista OS, 320GB HDD, DVD Writer, 5 USB, IEEE 1394, Ethernet, Wi-Fi and more. What is very cool is the availability of a Eco-Friendly Bamboo casing.
I wish this is just a beginning of design innovation coming from all the competitors in the Wintel PC world (Dell, Lenovo and HP) and we will see some new form factors in laptops as well.
I wish this is just a beginning of design innovation coming from all the competitors in the Wintel PC world (Dell, Lenovo and HP) and we will see some new form factors in laptops as well.

Tuesday, July 29, 2008

Ten Even More Weird and Bizarre Japanese Soft Drinks

What is it with Japan and weird drinks? Part of the answer lies in the love Japanese have for soft drinks – surveys show that about 40% of the nation's citizens drink at least one soft drink every day. That's about 50 million people!

In addition, trends come and go very quickly in Japan. What's cool today is as flat as warm Pepsi Ice Cucumber tomorrow... so soft drink companies are constantly coming out with something new and (hopefully) attention-grabbing 'cause one success more than makes up for dozens of failures.

Our list comprises the bad, the even more bad and the downright ugly, and we'll lead off the same way last year's list did – with Pepsi Japan's latest weird summer soft drink!

10) Pepsi Blue Hawaii


Wasn't there already a blue Pepsi, called umm, er, oh yeah - Pepsi Blue? It faded from the scene fairly quickly; a fate certain to be shared by Pepsi Blue Hawaii. Flavored with Pineapple and Lemon, you just know PBH is going to be sweeter than Hello Kitty in insulin shock – actually, it would probably be her IV drip.



9) Fanta Furufuru Shaker

Ever made Jello using 7-Up or Grape Crush instead of cold water? The gelatin retains a little carbonation after it cools. Fanta's Furufuru Shaker seems to be designed on the same principle; a semi-gelled drink that gets fizzy when you shake it. I don't know how you drink it... you'd need a fairly wide straw, if not a spoon. (via Japan Marketing News)

Anyway, all weirdness aside, the most interesting thing about Fanta Furufuru Shaker is the so-called Shaker Dance performed by official Fanta spokesmodel Rika Ishikawa. That girl can really shake her cans... can... erm, just watch the video...



8) Melon Milk

I've actually had Pokka's Melon Milk; both it and a Strawberry Milk version are sold in smallish cans at some Asian markets here in Toronto. It's rather popular in Japan, as are the many varieties of canned coffee Pokka makes.

Melon Milk doesn't taste bad... it does taste kinda strange though. Sort of like milk, with a melony overtone. You sip some, think “that can't be right”, then sip a little more. Before you know it you've drained the whole can – all part of Pokka's dastardly plan, no doubt. Melon is actually a major fruit flavor in Japan. If it's green & fruity, there's probably a melon involved. Consider yourself warned.

7) Bilk


Bilk... according to my dictionary, it means “to cheat out of something valuable”. It also makes a terrible name for a new drink – unless that drink is an unholy marriage of milk and beer, in which case it's entirely appropriate. Besides, Japanese dairy farmers are pretty much swimming in surplus milk and if Bilk doesn't work out they could resort to something truly awful, like a cheese drink (shudder).

Bilk... 70% beer, 30% milk, 100% disgusting. Supposedly, Bilk possesses a subtle sweetness that women should find most appealing. Beer bellies, belches and lactose intolerance, not so much. Bilk can be bought at 6 outlets in Japan's northern province of Hokkaido where bears outnumber humans 2:1. Guess they like the stuff, for their pic-a-nic baskets and all. (via Japan Probe)

6) NEEDS Cheese Drink

Well, you balked at Bilk so now it's come to this: NEEDS Cheese Drink. Nuh-uh, that's where I draw the line. I prefer to enjoy my cheese in the solid state, thank you, where I can shave off a paper-thin slice with that fiendish cheese-shaving knife. NEEDS Cheese Drink, I don't needs.

In fact, it seems the only ones who DO needs NEEDS are those pesky dairy farmers in Hokkaido, who “needs” to do something about growing stocks of surplus milk. If only there was something, sort of like a baby but still a cow, who could drink the surplus milk... ah well, never mind. (via F*cked Gaijin)

5) Hawaiian Deep-Sea Water


Remember those old movies, when a few shipwreck survivors are stuck in a lifeboat, dying of thirst? And one guy can't stand it anymore and starts drinking seawater, which drives him INSANE??

Koyo USA Corp wants you to forget all that. The maker of MaHaLo brand “Hawaiian Deep-Sea Water” is making a killing on desalinated deep ocean water thirst-crazed Japanese are falling all over themselves to buy... at between $4 and $6 per 1.5 liter bottle, no less.

Koyo USA Corp produces 200,000 bottles of processed seawater a day and can barely keep up with demand in Japan. According to company spokesman John Frosted, “At this point, we can't make enough. We have no surplus.”

Thank goodness for that, because the thought of seawater beer or seawater cheese drink would drive ME insane!

4) Kid's Wine


Kid's Wine – not just a road trip complaint anymore! Kid's Beer topped our list last time around, but did you know the same company, Sangaria, makes “wine” specially made for children? They also make their website play the cheesiest, most annoying music ever heard online. Maybe you have to be drunk on Kid's Wine to truly appreciate it.

3) Placenta Drink

From Kid's Wine to Kid Swine... Ahh, the things women will do to stay young and beautiful for us!

Thank you ladies, really... but there comes a point where bizarre beauty potions intended to make you luscious, just make us nauseous – and Nihon Shokuten's eerie series of placenta products are a prime example.

Made with swine placenta, the drink carries the automotive-sounding name of "Placenta 400000" - perhaps it's made from the ground & pressed extract of 400,000 placentas? Nihon Shokuten's not telling, but their revolting beverage should come pre-packaged with mints because there's nothing worse than placenta-breath in the morning.

2) Eel Soda

Unagi-Nobori soda is no ordinary energy drink, oh no... this terrific tonic is infused with a generous helping of eel extract. If you think there's something fishy about that, you're unfortunately right.

According to Japanese folk tradition, eating eel is reputed to give one extra energy on summer's hottest, most humid days.

These days though, one doesn't always have time for a leisurely lunch of delicious barbecued eel.

No problem – Unagi Nobori bottles essence of eel along with 5 essential vitamins in a carbonated medium. Make my medium small, if you don't mind... and by the way, Unagi Nobori is brought to you by the nice folks at Japan Tobacco, known for "healthy" products with smoky flavors. (via Japan Marketing News)

1) Okkikunare Drinks


Okkikunare is Japanese for “make them bigger”, and do I really have to tell you what “them” refers to? Well, maybe I do - lest guys with macho issues rush to place orders, the apple, peach and mango flavored drinks are quite popular among teenage girls in Japan.

Made by a comapny called Welcia, the special bust-boosting ingredient in Okkikunare drinks is powdered Arrowroot containing the same sort of isoflavones found in soybeans, which are said to “stimulate the female hormone system.”

Seems a little sketchy to me... then again, the drinks are also sweetened with high-fructose corn syrup, which has been linked to obesity. Therefore, EVERYTHING gets bigger the more you drink, not just the, umm, apples, peaches and mangos. (via DumpSoda)


And there you have it, Ten Even More Weird and Bizarre Japanese Soft Drinks. And, in case you were wondering, no Pocari Sweat again this time. Not even the doggie version, “Pet Sweat”. Odd as it sounds, Japan can do much better... or worse, as the case may be.

So, consider yourself warned, Japan can pack a few surprises for the unwary, thirsty traveler. Be sure to pack some Canned Bottled Water on your next trip there – it's lighter than the Bottled Canned Water and likely has even fewer calories!

Check out last year's list here.