Difference between revisions of "Project:Ethernet Arduino"
Line 144: | Line 144: | ||
Improvements will be made to the component placement and there is likely to be some change to the choice of Magjack connector - because of discussions elsewhere about PoE compatability. | Improvements will be made to the component placement and there is likely to be some change to the choice of Magjack connector - because of discussions elsewhere about PoE compatability. | ||
It uses entirely through hole components so easy to hand assemble, and it is intended to take standard Arduino shields. This, I believe is a good compromise, as it allows anyone to build it, it can be used as a project for training courses or workshops and as a regular Arduino. A 6 way connector allows it to be connected directly to an FTDI cable for programming. Standard AVRISP connector fitted for bootloading. [[File:etherduino_2B.jpg]] | It uses entirely through hole components so easy to hand assemble, and it is intended to take standard Arduino shields. This, I believe is a good compromise, as it allows anyone to build it, it can be used as a project for training courses or workshops and as a regular Arduino. A 6 way connector allows it to be connected directly to an FTDI cable for programming. Standard AVRISP connector fitted for bootloading. [[File:etherduino_2B.jpg]] | ||
+ | * '''[[User:monsonite|Ken]]:''' I have ordered the components for the through-hole version so that it can be prototyped on breadboard. |
Revision as of 08:36, 16 August 2010
Ethernet Arduino | |
---|---|
Created | 12/Aug/2010 |
Members | Elliot |
QR code |
Discussions on the list highlighted great interest and demand for cheap Ethernet enabled Arduino compatible boards. A plan was hatched to produce a number of these boards for members and possibly for sale. Increased volumes would result in lower unit cost.
Meurig is currently constructing some similar boards using plans from Instructables and is therefore likely to be a good source of information. These boards are being etched at the space and are of 'through hole' type.
Information
Some Background.
The Arduino has had internet capability for the last couple of years following the release of the "Official Ethernet Shield" in 2008. This was based on the WizNet W5100 ethernet controller chip and will work at both with 10Mb/s and 100Mb/s. It is available in the UK for about £26 [1]
Whilst a very capable and well supported shield, the cost of the Arduino and ethernet shield together is the best part of £40. Other ethernet controller devices are available, and these started to attract the interest of the AVR hacking community, as a means of getting a very low cost ethernet connection for AVR based projects. These used the Microchip ENC28J60, which is a simpler and cheaper device than the W5100, but still offered acceptable ethernet connection and the means to build cost-effective micro web servers and web clients.
This project intends to build on some of the existing offerings (see below), to produce a low cost board fitted with ATmega328 and ENC28J60 which will allow simple servers and clients to be developed for about half the cost of an Arduino plus official shield, thus enabling this technology to be opened up to a wider user base.
A few members of the London Hackspace have decided to produce a batch of these ethernet boards, for the benefit of the members, and use them as a hardware platform on which to host fundraising training courses and workshop sessions.
It is possible that two versions of the ethernet board will be ultimately produced so as to meet two specific requirements.
- Version A. Using conventional through hole components and DIL socketed ICs, with a connector pattern which is highly compatible with the existing Arduino shield range. Easily built by anyone who can do basic soldering.
- Version B. A small footprint board, roughly compatible with the Arduino Nano, using mainly surface mount parts for a high specification device.
Regarding the ENC28J60 paired to the ATmega328:
Firmware & Libraries
- This chip has been used by Tuxgraphics who I believe worked on the original code to pair it with the ATmega168/328.
- NuElectronics also use it on their Ethernet shield - and have some code examples here.
- Andrew Lindsay has rewritten the code to make it easier to understand and use. He has also written a Pachube client with twitter updates.
- Simon Monk has produced a simplified Server Libray for the ENC28J60 shield
- Trystan Lea is using this combination for his Openenergymonitor and has improved the Client library
Hardware & Mods
- A similar project on Instructables.
- The Instructables version would make an ideal beginner's project for Ethernet Workshop sessions and can be made for under £20
- John Crouchley suggests 74AHC125D modification to allow correct operation of MISO here
- A very neat SMT ENC28J60 implementation and schematic here
- The RJ45 MagJack connector and ENC28J60 in DIL package are very cheap from CoolComponents
- For breadboard prototyping - this RJ45 Magjack on a breakout board is exceptional value at £1.99
Power Over Ethernet
- This project would be a good opportunity to implement power over ethernet (PoE). The choice of the magjack is critical to ensure PoE compatibility. Also a dc power supply with a wide input voltage range is needed on the ethernet board. There is a good example of how this is implemented on this Olimex product
Device Datasheets
- Datasheet for ENC28J60 1.64MB Note small SS and QFN package options avalable
- Datasheet (Summary) for ATmega328 Note QFN package option
Board specification
- Surface mount to reduce size
- PCBs supplied by a 3rd party
- Arduino compatible
- atmega328 32pin quad package
Rough plan
- Agree on specification
- Breadboard prototype
- Design board
- Build a prototype board
- Use it as a platform on which to base training courses and workshop sessions
- Build up a lot of local expertise
- ...
- Profit!
Bill of materials
SMT Version
- ENC28J60-I/SO
- ATmega328
- Magjack HanRun HR911105A or similar
- 25MHz crystal HC49-4mm
- 16MHz crystal HC49-4mm
- LD1117 -500 5V regulator
- LD1117 - 330 3V3 regulator
- 74AHC125D (as per John Crouchley's Mod)
- 2 x 1N5819S schottky diodes
- 2 x 18pF 0603 ceramic caps
- 2 x 22pF 0603 ceramic caps
- 12 x 100nF 0603 ceramic caps
- 3 x 10uF 10V tantalum caps
- 4 x 49.9R 0603 resistor
- 2 x 270R 0603 resistor
- 1 x 330R 0603 resistor
- 4 x 1K 0603 resistor
- 1 x 2K 0603 resistor
- 3 x 10K 0603 resistor
- 1 x reset switch
- 2 x 0603 Green LEDs (Power, Pin 13 LED)
- 2 x 0603 Red LEDs (Serial Rx and Tx)
- 1 x Ferrite bead 0805 (value TBC)
- 2 x Header 14pin
- 1 x Header 3x2 (AVRISP Header)
- 1 x Header 6 pin (FTDI cable connection)
- 1 x PCB
BOM compiled from NuElectonics Nano and NuElectronics Ethernet Shield parts
- A version based on the Instructables project using primarily through hole components - ideal for a DIY project
- Through-hole Version
- ATMega328P-PU - DIP version
- Microchip ENC28J60-I/SP - DIP version
- 74AHC125D - Surface Mount
- 3mm LED x3
- 1N4004 Diode
- 78L05 Regulator
- 78L33 Regulator
- 16 MHz HC49-4H Crystal
- 25 MHz HC49-4H Crystal
- 49R9 0.25W 1% resistor x 4
- 270R 0.25W 5% resistor x 5
- 2K7 0.25W 5% resistor x 2
- 10K 0.25W 5% resistor x 3
- 18pF ceramic cap x 4
- 100nF ceramic cap x 4
- 10uF 16V electrolytic cap x 3
- 28 pin 0.3" DIL socket x 2
- 4 pin dip switch
- RJ45 MagJack CoolComponents recommended
- 20 pin 0.1" SIL header x2
- Small Tact switch
- ATmega Ethernet PCB
Individual interests
- Elliot: Has components for prototypes and is willing to: prototype, make boards, write code, assemble, buy 4 of these boards. However, his skill may not be as great as his enthusiasm...
- t0m Would love to buy 2/3 SMT kits myself to practice SMT soldering. If someone is organising a load of these, would be happy to spend a weekend soldering them up for the practice. (My regular soldering is good, I've never done any real SMT however)
- tomwj: I too would be interested in making, soldering and general prototyping/production of these boards and buying a couple
- nigle: I can turn a back of as fag packet sketch into a neat schematic and do the board layout, I do this stuff professionally so it should look pretty good! I might well suggest or even insist on improvements to the design - you have been warned :-)
- jmccrohan: I would be interested in purchasing 2-3 of these devices and would be willing to help out with the design
- Ken: I can help with general design, layout, SMT assembly, sourcing parts from China and might even be able to find a Shoreditch local sponsor for this project. Working on BOM - determined to get it sub-£12.
- Ken: I have now started on an EagleCAD schematic and layout for the through-hole version - see below for first draft of placement.
This draft is purely to show that the parts will fit onto an Arduino sized board Size 52 x 68mm, and that a route is achievable.
Improvements will be made to the component placement and there is likely to be some change to the choice of Magjack connector - because of discussions elsewhere about PoE compatability.
It uses entirely through hole components so easy to hand assemble, and it is intended to take standard Arduino shields. This, I believe is a good compromise, as it allows anyone to build it, it can be used as a project for training courses or workshops and as a regular Arduino. A 6 way connector allows it to be connected directly to an FTDI cable for programming. Standard AVRISP connector fitted for bootloading.
- Ken: I have ordered the components for the through-hole version so that it can be prototyped on breadboard.