Posts with «arduino» label

Interfacing temperature sensor with arduino

Interfacing temperature sensor (LM35) with arduino:

In this post, we will learn how to interface temperature sensor (LM35) with arduino uno.

Arduino Uno is an open-source electronic prototype board used by beginners, hobbyists and developers across the globe, Arduino have so many forums, if you need any help, guidance.
Arduino uno is based on atmega 328p microcontroller. Arduino uno comes in two pckages:
Through-hole package and SMD package.

For the time being, we are considering through-hole package. It's a 28-pin DIP (dual inline package) IC.  There are 14-digital I/O pins and 6-analog input pins.
Arduino has a rich library support. For example: led blinking, lcd interfacing, etc. all these program can br found in library.

In order to display data received from temperature esnsor, we need display device like seven segment display or lcd or alternatively we can use serial monitor.

LM-35 is a temperature sensor. It's sensitivity is 10mV/°C which literally means with rise in temperature by 1° Celsius the voltage is increased by 1 millivolts. It's graph is linear.
It's range is from -55° Celsius to +150° Celsius.

Arduino have 6-adc channels viz, A0-A5. These are 10-bit adc means 0-5 analog volt is converted into digital count ranging from 0-1023

Resolution = Vref/((2^10)-1) = Vref/1023

We are taking Vref as 5 volt. Now, the resolution comes out to be 4.887 mV

In order to convert digital count into voltage, we have to multiply it by 4.887. Now we have voltage. We have to convert this voltage into temperature. This is known as calibration.

Temperature in ° C = 4.887 * digital count (0-1023) /10.0

Here are the screenshots of prteus simulation and code:

Proteus simulation



Download arduino code and simulation from the link given below:

https://drive.google.com/file/d/0B4Px6Drl6Zz_RFB2MEM4YUdPRGM/view?usp=sharing

Stay tuned for more updates !!

    

Here’s the giveaway winner for April 28th on Instagram

Congratulations to Gustavo Reynaga from Sinaloa (Mexico) for the following picture taken at Genuino Day at Mazatlan International Center. We’re sending him a Genuino MKR1000 and a Genuino Mug!

First Arduino/Genuino Day in Sinaloa State of Mexico @arduino.cc @arduino.cc #ArduinoD16 #GenuinoD16

A photo posted by Gustavo Reynaga (@hulkco) on


It’s your time to win a MKR1000 too!

– Follow our official Arduino.cc account on Instagram

– Share your pics on your account on Instagram using hashtag #ArduinoD16 and #GenuinoD16 and mention us with the tag @Arduino.cc

– Every thursday, from April 7th to May 26th we are going to choose one of your pics (posted starting April 2nd) and announce on this blog a winner of an Arduino or a Genuino MKR1000 and one of our t-shirt or mug for a total of of 8 lucky people. Easy enough, right?

Remember to share cool pictures regarding Arduino and Genuino moments in your community also beyond Arduino and Genuino Day.
Show us your local activities!

Make or Break: who’s the best maker?

Last night Massimo Banzi was Guest Judge on Intel  America’s Greatest Maker - episode 4 and had the difficult task of evaluating the teams and their projects competing in the Make or Break rounds for $100,000 and a spot in the million dollar finale.

Check some bits of the episode in this Meet and Greet video and in the Fast Forward of the episode!

Arduino Blog 28 Apr 17:25

Autograph: A String Art Printer

“String Art” is the name of the art form that transforms thousands of nails and just as many feet of thread into unique masterpieces. Some artists have developed techniques to create photorealistic string art works, but until now, there was no way around the tedious and time-consuming manufacturing process. Depending on the size, it can take months to complete a single piece by hand.

The threading process as shown in this video – (c) Laarco 2016.

Now, you might think, wouldn’t it be great to build a sophisticated “nail and thread”-machine that takes care of the whole assembly process, from placing the nails on the board to winding the string around the nails? The people behind Laarco, a design studio in London, UK, did exactly that. Their project “Autograph” is effectively a large scale “printer” for string art, capable of satisfying the increasing demand for this form of image reproduction.

While they are not shy to show their amazing results, mostly string-art-converted photographs of celebrities, we will probably not get a full documentation on the hardware and software behind Autograph. After all, it took them four years of development to build this fully automated machine, and they are about to turn their string boss-ness into a strong business: You can now buy their unique string art pieces starting at $1,100.

String path and height visualization – (c) Laarco 2016

Too expensive? Well, you can still build your own: The brain of the machine is a Raspberry Pi which sends commands to an Arduino Mega equipped with a 3D printer shield. The gantry design looks very similar to a popular low-cost CNC-mill, however, they added a custom tool head to position and uncoil the thread while keeping it under tension.

In preparation of an assembly pass, the nail positions are derived from Voronoi diagrams, an unknown mechanism then picks and places the nails into pre-drilled holes. During the threading run, the height of the tool head increases as the process progresses to avoid collisions with previous string segments.

We’ve seen drawing-bots, polar graphs and robotic artists in various forms in the past, but it’s probably safe to say that this is the first string art machine ever built. That said, enjoy the video:


Filed under: cnc hacks, Raspberry Pi
Hack a Day 28 Apr 12:01

Cardboard And Paperclip CNC Plotter Destined For Self-Replication

Last November, after [HomoFaciens]’ garbage-can CNC build, we laid down the gauntlet – build a working CNC from cardboard and paperclips. And now, not only does OP deliver with a working CNC plotter, he also plans to develop it into a self-replicating machine.

To be honest, we made the challenge with tongue firmly planted in cheek. After all, how could corrugated cardboard ever make a sufficiently stiff structure for the frame of a CNC machine? [HomoFaciens] worked around this by using the much less compliant chipboard – probably closest to what we’d call matboard here in the States. His templates for the machine are extremely well thought-out; the main frame is a torsion box design, and the ways and slides are intricate affairs. Non-cardboard parts include threaded rod for the lead screws, servos modified for continuous rotation, an Arduino, and the aforementioned paperclips, which find use in the user interface, limit switches, and in the extremely clever encoders for each axis. The video below shows highlights of the build and the results.

True, the machine can only move a pen about, and the precision is nothing to brag about. But it works, and it’s perfectly capable of teaching all the basics of CNC builds to a beginner, which is a key design goal. And it’s well-positioned to move to the next level and become a machine that can replicate itself. We’ll be watching this one very closely.

The HackadayPrize2016 is Sponsored by:

Filed under: cnc hacks, The Hackaday Prize

Using atmega 8 in Arduino IDE

This post is important since atmega 328p is way more expensive than atmega 8a. We can use arduino IDE with atmega 8 too.

Open arduino IDE and from file menu select Examples>Basics>Blink.
In next instance, code for blinking a led will be displayed on your screen.

Now from Tools>Board>Arduino NG or older

Selecting arduino ng or older

Now, we have to choose microcontroller:
Tools>Processor>Atmega 8

Selecting atmega 8
Now, we have to just compile the program.
Just click on the first icon just below the file menu.
Compiling the code
Also, make some changes in preferences: File>Preferences
Preferences
Make changes as given above. This make the IDE more user-friendly.
Note: Preferences has nothing to do with programming part. It just makes IDE more user-friendly.

Now, our hex file is generated. One question arises: How to locate the hex file?

First of all, click on view to display hidden files and folders:
View hidden files and folders
After this, hidden files and folders will appear: 
You can retrieve hex file from the following directory:

C:\Users\user_name\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp

In this folder, resides your hex file. Check the date and time of hex file.

I am using avrdudes for burning the hex file in atmega 8a.

Fuse byes are as follows: Low fuse: 0xE4
                                         High fuse: 0xC6
This setting is for 8-MHz internal oscilltor.

Note: Wrong fuse bytes can damage your microcontroller.
The delay of arduino IDE is not in sync with your coding due to indifference in crystal oscillator.

Thanks for your patience.

Keep supporting !!




Circuit Bender Artist bends Fresnel Lens for Art

Give some mundane, old gear to an artist with a liking for technology, and he can turn it into a mesmerizing piece of art. [dmitry] created “red, an optic-sound electronic object” which uses simple light sources and optical elements to create an audio-visual performance installation. The project was the result of his collaboration with the Prometheus Special Design Bureau in Kazan, Russia. The inspiration for this project was Crystall, a reconstruction of an earlier project dating back to 1966. The idea behind “red” was to recreate the ideas and concepts from the 60’s ~ 80’s using modern solutions and materials.

The main part of the art installation consists of a ruby red crystal glass and a large piece of flexible Fresnel lens, positioned in front of a bright LED light source. The light source, the crystal and the Fresnel lens all move linearly, constantly changing the optical properties of the system. A pair of servos flexes and distorts the Fresnel lens while another one flips the crystal glass. A lot of recycled materials were used for the actuators – CD-ROM drive, an old scanner mechanism and old electric motors. Its got a Raspberry-Pi running Pure Data and Python scripts, with an Arduino connected to the sensors and actuators. The sensors define the position of various mechanical elements in relation to the range of their movement. There’s a couple of big speakers, which means there’s a beefy amplifier thrown in too. The sounds are correlated to the movement of the various elements, the intensity of the light and probably the color. There’s two mechanical paddle levers hanging in there, if you folks want to hazard some guesses on what they do.

Check out some of [dmitry]’s earlier works which we featured. Here’s him Spinning a Pyrite Record for Art, and making Art from Brainwaves, Antifreeze, and Ferrofluid.


Filed under: hardware, musical hacks

Devasator DF Robotics

I'm hoping someone can shine some light on a frustrating issue I'm having with placment of componets in the very limited space inside the DF Robotics Devasator. Ideally I would like to use a Mega Arduino for this ambitous project. However the Mega a slight bit larger than the UNO. The L298 board, Arduino,breadboard and battery pack needs to fit into the very limited space. There is space for the Arduino at the front, however there would not be access to the USB port on the Arduino.

read more

Let's Make Robots 26 Apr 23:46
arduino  other  

Explore your weekly calendar through a tangible interface

A group of students (Kate Twomey, Leila ByronDaan Weijers, Luuk Rombouts) at the Copenhagen Institute of Interaction Design explored the creation of a tangible user interface displaying personal calendar’s meetings without using a screen.
The installation is called Timely and uses Temboo, Google Calendar API and a Genuino MKR1000 to pull all the upcoming week’s events and displaying each of them with a rotation of a laser cut base and its red strings:

The visual forecast is used to create awareness, while capacitive sensors in timely make it easy to adjust busy days by simply grabbing all three prongs of the chosen day. timely will then distribute your time more evenly throughout the day by rescheduling events and meetings, while automatically notifying attendees if needed.

DIY Vacuum Chamber Proves Thermodynamics Professor Isn’t Making It All Up

[Mr_GreenCoat] is studying engineering. His thermodynamics teacher agreed with the stance that engineering is best learned through experimentation, and tasked [Mr_GreenCoat]’s group with the construction of a vacuum chamber to prove that the boiling point of a liquid goes down with the pressure it is exposed to.

His group used black PVC pipe to construct their chamber. They used an air compressor to generate the vacuum. The lid is a sheet of lexan with a silicone disk. We’ve covered these sorts of designs before. Since a vacuum chamber is at max going to suffer 14.9 ish psi distributed load on the outside there’s no real worry of their design going too horribly wrong.

The interesting part of the build is the hardware and software built to boil the water and log the temperatures and pressures. Science isn’t done until something is written down after all. They have a power resistor and a temperature probe inside of the chamber. The temperature over time is logged using an Arduino and a bit of processing code.

In the end their experiment matched what they had been learning in class. The current laws of thermodynamics are still in effect — all is right in the universe — and these poor students can probably save some money and get along with an old edition of the textbook. Video after the break.


Filed under: Arduino Hacks, tool hacks