Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
samartian
PostPosted: Apr 02, 2012 - 05:51 PM
Newbie


Joined: Apr 02, 2012
Posts: 2


hey friends......

I am a student of final year and need help on interfacing a current sensor with ATMega16/32 please let me know how to do so and how to design circuit..........
it gives me 66mV for one Ampere of current..........
my email is sardar_azharmehmood@yahoo.com
 
 View user's profile Send private message  
Reply with quote Back to top
samartian
PostPosted: Apr 02, 2012 - 05:52 PM
Newbie


Joined: Apr 02, 2012
Posts: 2


sorry for not mentioning the sensor its ACS712T
 
 View user's profile Send private message  
Reply with quote Back to top
MBedder
PostPosted: Apr 02, 2012 - 06:08 PM
Raving lunatic


Joined: Nov 02, 2009
Posts: 3239
Location: Zelenograd, Russia

For exactly the same purpose I have successfully used the 28AWG copper wires.

_________________
Warning: Grumpy Old Chuff. Reading this post may severely damage your mental health.
 
 View user's profile Send private message  
Reply with quote Back to top
John_A_Brown
PostPosted: Apr 02, 2012 - 06:11 PM
Raving lunatic


Joined: Sep 20, 2003
Posts: 4115
Location: Surrey, England

Connect the VIOUT pin to an ADC input on the ATMega, read the voltage. Take a look at the Sparkfun web site, they have a datasheet and schematics.
 
 View user's profile Send private message  
Reply with quote Back to top
ka7ehk
PostPosted: Apr 02, 2012 - 06:32 PM
10k+ Postman


Joined: Nov 22, 2002
Posts: 12197
Location: Tangent, OR, USA

Try Allegro since they make the chip. That is the absolute first place I would go. Start with their spec sheet. It has application circuits in it.

I really don't understand why folks use these "data sheet sites" and distributor stuff since the manufacturer is the one who knows about it.

Jim

_________________
Jim Wagner
Oregon Research Electronics, Consulting Div.
Tangent, OR, USA

"The only thing standing between us and victory is defeat" P.G.Wodhouse in Wooster & Jeeves series
 
 View user's profile Send private message  
Reply with quote Back to top
John_A_Brown
PostPosted: Apr 02, 2012 - 08:53 PM
Raving lunatic


Joined: Sep 20, 2003
Posts: 4115
Location: Surrey, England

The datasheet on the Sparkfun site IS the Allegro one.
It was the first reference Google found, and I didn't actually know it was an Allegro part to begin with.
Although I should have guessed, as I found it fairly quickly.
 
 View user's profile Send private message  
Reply with quote Back to top
meslomp
PostPosted: Apr 03, 2012 - 06:34 AM
Raving lunatic


Joined: May 02, 2007
Posts: 3154
Location: Nieuwegein, Netherlands

so you as a final year should know how to make a design......

what building blocks do you need? you have the avr and sensor already, what orther blocks do you need to make your product?

next step: what are the interfaces needed per block connected to the micro controller? GPIO? Timer? ADC? UART? USB? TWI? SPI?

then and only then you can select what AVR you need to use.

After that you need to make the firmware for controlling each block the way you want to polling? interrupt based? dependencies between blocks like uart/usb and adc or gpio

The only difficult thing is writing the code for each block. I would suggest to write code step by step. not try to make everything work at once.... first get your lcd/uart/usb communication working, then you have a simple debug interface, then write the other blocks you might need.

_________________
1)Datasheet and application notes checked?
2)tutorial forum
3)Newbie start here
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits