How to build a 21st century protection board

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
How would that work with a 0-5v analog input? A regular opto-coupler is not linear enough to output the voltage correctly (so I've been told).
Any room on your board to add this device or something similar in size? I would probably socket it just in case in blows.
I might be over thinking this, I simply want to trigger the board off when voltage goes too high. Resolution needs to be decent since the trip point may be from 3v to 3.1v
 
You are overthinking this.

The AD converter would convert the signal from 0-5VDC to a binary value, then you read it digitally over an I2C bus(analog pin 4 & 5). Use the wire library in the arduino IDE.

Wire.requestFrom (AD converter address, number of bits it spits out)

If you are using a 8 bit AD converter it will convert to a number from 0 - 255. The opto-isolator stops anything bad from happening to the microcontroller.

But if you really want to keep it simple, look at the on board overcurrent (bias) sensing circuit Vzaichenko designed for this. It uses a voltage divider as you want to do. Tune it so the threshold voltage you want to trigger at causes current flow through the input of the opto-isolator, and read it digitally. Voltage goes high, opto-isolator pulls the input pin low and triggers the alarm.
 

Attachments

  • Overcurrent.jpg
    Overcurrent.jpg
    89.5 KB · Views: 469
Last edited:
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.