This is the version 5e51694bc2d37d0280029b12 from 2020-02-22 17:47:55 comment: 'wifi test'
Arduino ed
I'm having the cheap clone from Maker Factory, with an atmega328p. Trying to work on Manjaro linux.
Table of Contents
Arduino IDE ed
Setup ed
- open the board manager (menu tools/boards)
- install "Arduino AVR boards"
- select the "Arduino Uno"
- programmer: "ArduinoISP"
- port: "/dev/ttyACM0"
Giving upload permission to normal user:
sudo chmod a+rw /dev/ttyACM0
Serial monitor ed
Had Java errors first, because my system used an outdated version of java.
- check
archlinux-java status
- set
sudo archlinux-java set java-10-openjdk
Some goals ed
0.98' OLED display ed
In IDE, install libraries:
- Adafruit SSD1306
- Adafruit GFX Library
Connect to random pins and edit code accordingly:
#define OLED_MOSI 11 // -> D1
#define OLED_CLK 12 // -> D0
#define OLED_DC 9
#define OLED_CS 8
#define OLED_RESET 10
wifi: ESP8266 ed
Connection... 3V3, GND, D0, D1...
- Test
AT
OK
- Libraries
low level ed
Pins ed
arduino atmega D0 D0 ... D7 D7 D8 B0 ... D13 B5 ADC0 ADC0 ... ADC5 ADC5
avrdude ed
- flashing an image
avrdude -p atmega328p -P /dev/ttyACM0 -c arduino -U flash:w:main.hex
Can upload, but sadly, no digital output yet...?
Categories: Computer, Programmieren