ENC28J60 Ethernet controller with Arduino

This is a notes post for future reference Description: Cheap/cheapest ethernet controller Speed: 10MB/s (half duplex I believe) POE: no Operating voltage: 5 or 3.3v WOL: Yes, although not tested. Libraries: EtherCard (My prefered). CODE: Add the following to: enc28j60.cpp to enable promiscuous mode (disable ip filters), can be used for packet sniffing. void ENC28J60::enablePromiscuous () { //writeRegByte(ERXFCON, readRegByte(ERXFCON) & ERXFCON_CRCEN|ERXFCON_PMEN|ERXFCON_BCEN); writeRegByte(ERXFCON, 0); } Credit #include <EtherCard.h> byte Ethernet::buffer[500]; ether.begin(sizeof Ethernet::buffer, mymac,10); if (!ether.dhcpSetup()) { tft.print(“DHCP failed.”); } ENC28J60::enablePromiscuous(); Pins: Controller -> UNO/Micro/Mini Pro (Compatible) INT -> D2 SO -> D12 SI -> D11 SCK -> D13 CS -> D10 (or D8) VCC -> 5V Continue Reading →

ST7735 LCD 128×160 with Arduino

This is a notes post for future reference Description: Cheap eBay color LCD display Resolution: 128×160. Size: 1.8″ Driver: ST7735 Colors: 18bit ? Libraries: Adafruit_GFX, Adafruit_ST7735, SPI. CODE: #define sclk 13 #define mosi 11 #define cs   4 #define dc   8 #define rst  -1 Adafruit_ST7735 tft = Adafruit_ST7735(cs, dc, rst); tft.initR(INITR_BLACKTAB); tft.fillScreen(ST7735_BLACK); Pins: Display -> UNO SCLK -> 13 MOSI (SDA) -> 11 CS -> 4 DC (AO) -> 8 RST -> RESET VCC -> 5V GND -> GND LED -> 3.3v

SSD1306 OLED 128×64 with Arduino

This is a notes post for future reference Description: Cheap eBay monochrome OLED display Resolution: 128×64. Size: 0.96″ Driver: SSD1306 ? Libraries: U8glib (trying to get it to work with Adafruit_SSD1306.h). Code: //Uncomment this line from the examples: U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);    // I2C / TWI Pins: Display -> UNO SDA -> A4 SCK -> A5 GND -> GND VCC -> VCC (5V)