Coder Social home page Coder Social logo

raspiduino / upythoncomputer Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 5.8 MB

A MiniComputer based on Arduino, ESP8266 and MicroPython!

License: MIT License

Python 7.78% C++ 92.22%
arduino avr esp8266 micropython micropython-esp8266 python portable

upythoncomputer's Introduction

MicroPython Computer

A MiniComputer based on Arduino, ESP8266 and MicroPython! Update 30/7/2020: It worked perfectly! Try it! alt

Description

MicroPython provide a small shell to run Python codes and commands. Usually you have to connect to it through Serial Monitor or webRPEL. This project make that shell portable by bring it to Arduino with a Nokia 5110 LCD and 3 button as keyboard. With it, now you can make your MicroPython portable and bring it everywhere you want without bring any computer to connect.

Setup

First, flash the esp8266 by connect like the picture: alt
Remember to connect GPIO0 to GND and NOT VCC! Then follow these steps:

esptool.py --port [your_COM_port] erase_flash
esptool.py --port [your_COM_port] --baud 460800 write_flash --flash_size=detect 0 the_bin_file_name_and_path.bin
Replace it with yours.

  • Send the boot.py and change_baud.py in the git to esp8266 using ampy. See this: https://github.com/scientifichackers/ampy
  • Unplug the USB to serial module and plug your Arduino in. Clone this git and build the code with Arduino IDE or you can also download the precompiled .hex file and flash it into your Arduino.
  • Connect the pins like below:

Pins

Please connect like the picture below: alt
This is the connect for the 5V nokia 5110 LCD. If you want to use with 3V ones, please connect 4.7 k resistor to the lcd like this: alt
(A0 -> A5 is analog pin on your Arduino)
To be smallest, please plug the LCD into Analog header like this: alt

Usuage

You can plug the Arduino in the computer and send the command into the esp8266 by open the serial monitor. If you want to use it portable, connect batteries into Arduino's VIN port. You can type to the Arduino by using three buttons: Left, Select and Right(in Typing section)

Typing

You can type to the Arduino by pressing three buttons: Left, Select and Right
First, use the left and right button to select the keys in the ascii table. Then when you finish, you press select and it will automaticly jump to the next character for you to type. If you finish, press two times to the select button to sent the enter key. When you press another command, it don't clear the last command (a bug, sorry for that), but it will replace that.

Display

When you power the Arduino, it will display two lines like this:
>>>
__________________________
>
The ">>>" is the MicroPython prompt and the ">" is the input text box for you to type in. When you done, press Select two times and it will sent text to MicroPython

This project is on working and maybe unstable sometimes. Sorry for that!

upythoncomputer's People

Contributors

raspiduino avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

upythoncomputer's Issues

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.