Giter VIP home page Giter VIP logo

8bit-hub's Introduction

8bit-Hub

Firmware and Hardware of the 8bit-Hub, a device for 8bit era computers.

Setting up Arduino IDE to program your 8bit-Hub:

(1) Clone the Repo @ https://github.com/8bit-Dude/8bit-Hub.git/trunk/Firmware

(2) Install the Arduino IDE

(3) File > Preferences > Sketchbook Location ---> Set to your local copy of "/Firmware" Folder (Restart the Arduino IDE for changes to take effect)

(4) File > Preferences > Additional Boards Manager URLs ---> https://github.com/esp8266/Arduino/releases/download/2.7.4/package_esp8266com_index.json

(5) Tools > Board > Boards Manager ---> search esp8266, then click install


Flash new sketch (Core Part): (Switches set to ON ON ON ON OFF OFF OFF OFF)

(1) Tools > Board > optiboot-avr (in sketchbook) > Arduino Mega 2560 (Optiboot)

(2) Load Hub-Mega2560.ino

(3) Edit the code, for example these lines:

// Override with some defaults
if (!strlen(ssid) && !strlen(pswd)) {
    strcpy(ssid, "8bit-Unity");
    strcpy(pswd, "0123456789"); 
}

(4) Connect Hub to PC, then Tools > Port > Select COM number

(5) Upload sketch

(6) Tools > Serial Monitor ---> Set Baud Rate to 115200

"Et Voila"! You can use the serial monitor to get information/debugging messages. If you want to revert to "official" firmware, set: char megaVersion[5] = "v0.1"; The Hub will offer you to download latest firmware (e.g. v0.3) next time you boot.


Flash new sketch (Wifi Part): (Switches set to OFF OFF OFF OFF ON ON ON OFF)

(1) Tools > Board > ESP8266 boards > Generic ESP8266 Module

Tools > Flash Size > 4MB (FS:2MB OTA:~1019KB)

Tools > Erase Flash > All flash contents

(2) Load Hub-ESP8266.ino and edit code

(3) Connect Hub to PC, then Tools > Port > Select COM number

(4) Upload sketch, "Et Voila"!

Important: Set the switches back to ON ON ON ON OFF OFF OFF OFF after flashing the sketch, otherwise the serial monitor will not work.


Burning the Optiboot boot loader onto a new board:

2 arduino mega boards are needed for this operation (one is used as progammer).

(1) Connect the boards pins as follows, then connect to USB:

Programmer:  5V  GND  50  51  52  53

  Target:    5V  GND  50  51  52  RST

(2) Tools > Board > Arduino AVR Boards > Arduino Mega or Mega 2560

(3) File > Examples > 11.ArduinoISP > ArduinoISP

(4) Change code as follows: #define RESET 10 > #define RESET 53 //#define USE_OLD_STYLE_WIRING > #define USE_OLD_STYLE_WIRING #define PIN_MOSI 11 > #define PIN_MOSI 51 #define PIN_MISO 12 > #define PIN_MISO 50 #define PIN_SCK 13 > #define PIN_SCK 52

(5) Sketch > Upload

(6) Tools > Programmer > Arduino as ISP

(7) Tools > Board > optiboot-avr (in sketchbook) > Arduino Mega 2560 (Optiboot)

(8) Tools > Burn Loader, "Et Voila"!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.