Unitrend UT61E Ethernet Adapter with ATmega and ENC28J60
Вставка
- Опубліковано 7 лип 2024
- Video tutorial on how I built an Ethernet adapter for the Unitrend UT61-E optical interface using an ATmega8 together with the Microchip ENC28J60.
Source code (licensed under the GNU GPL-3): johannes-bauer.com/electronics...
Reverse engineered protocols by Henrik Haftmann (thanks a bunch!): www-user.tu-chemnitz.de/~heha/...
Music by www.LukHash.com
Video License: CC BY-SA 3.0 - Наука та технологія
Respect, I can only say kudo's to you. This project is a good example of how open source should be and stay.
Hi Sean, thanks for the encouraging words. Porting this to Arduino should be pretty easy and you'll be able to recycle most of my code. As for the dimensioning: For 5V I'd choose the optocoupler output pullup resistor to be 4.7k. For the discrete inverter, nothing changes: base resistor 4.7k, pullup 10k. Should work like a charm. If you run into trouble, drop me a note, I'd be glad to help.
According to the protocol description of Henrik Haftmann, the UT61 models should all use the identical protocol. The UT60B uses a slightly different protocol (should be very easy in software from the looks of it). Others differ more, but can still be implemented. You could basically implement them all in the AVR and have a unified ethernet interface to the outside (which would be kind of cool). The Mega8 flash is almost full already with only the 61E code, so using the M168 would be a good idea.
Awesome project!! +1
very nice work, respect
Well, yes, that's the resistor I meant but I had initially thought that I had also relaced it (which I had not apparently). So you really don't need to change any components then to make it work with 5V instead of 3.3V. Haven't measured the amperage, but I'd guess approximately 5-10mA max at 5V (this includes the inverter).
Very interesting. Will it work with the rest of the range that use the same optical interface?
Excellent, more or less what I have been trying to do, would love to copy your setup. I would however like to use an arduino as I am familiar with them, With your serial to ttl circuit it is designed to output 3.3 V to Vin, any idea what resistors I would use to make that 5 v to suit the arduino.(I am a bit electronically incompetent and coding illiterate, may need some help with that later if you can be bothered) Thanks and once again brilliant.
Hi. Good intro video. I understand that you dislike the ENC28J60. For now I am new to the MCU + Ethernet. Did you just download the TCP/IP stack from Microchip and include it in your AVR microccontroller project? Please add download link for your project with ENC28J60 stack included. Thank you
Hi JD Thanks, by optocoupler output pullup resistor do you mean besides what is on the ut61e opto cable board w.flickr.com/photos/rubberbrick/9413691308/ see red circle, any idea on what amperage the opto board pulls? I am about to have a look at you code to see if I can make any sense out of it. Cheers
Great project, but you haven't even told us what happens at the receiving end... how do we read the meter?
Seems a bit like a sledgehammer to crack a nut really, thanks anyway :-)
let me guess, you're german ?