Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations The Obturator on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

ATtiny 26 and Freescale MC3887

Status
Not open for further replies.

sballs

Electrical
Nov 27, 2006
1
Hello,
I am using an ATtiny26 to control a Freescale MC33887 H-bridge with current feedback. The data sheet for the h-bridge states that the current feedback is 1/375 of the measured load current, and the resistance range for the linear operation of the FB terminal is 100 < RFB < 200 ?.

My motor has a maximum current draw of 500mA and I am using a feedback resistor of 200? => The maximum voltage to the ADC will be (500mA/375)*200 = 266mV. I would like to shut the motor off at 350mA or 186mV.

What is the best way to go about measuring this accurately? Should I use a differential input with 20x gain (ADC2 to FB signal and ADC1 to GND)?

Do I need to add filtering to the ADC?

Thank you!
 
Replies continue below

Recommended for you

I'd just go with a non inverting single ended amp. (After) I made sure that the 266mV range was too small for the ATtiny.

And yes you want to use some RC filtering on the Freescale side, since there could be some current noise translated to FB voltage noise. Noise will drive you cazy on a closed loop.

Keith Cress
Flamin Systems, Inc.-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor