[Tuto] Programmer une esp8266 avec un RPI

Vous avez créé un script LUA dont vous êtes fier, un .sh génial, un programme Python hors du commun, un Tuto, c'est ici que vous pouvez les partager.
jackslayter
Messages : 1040
Inscription : 30 sept. 2014, 14:40
Localisation : Isère (38)

[Tuto] Programmer une esp8266 avec un RPI

Message par jackslayter »

http://www.extragsm.com/blog/2014/12/03 ... pberry-pi/

Code : Tout sélectionner

Summary:
1) Connect raspberry to use the esp as a "modem".
esp: Raspberry pi:
vcc and CH_PD -> Pin1 (3.3v)
GND -> Pin9 (GND)
TX -> Pin10 (GPIO 15)
RX -> Pin8 (GPIO14)

Disable serial port login (remove from /etc/inittab the line with ttyAMA0

Disable serial port bootup messages (remove from /boot/cmdline.txt all parameters with ttyAMA0

Reboot.

Connect with minicom -b 115200 -o -D /dev/ttyAMA0

2) Upload new firmware:

Get http://www.extragsm.com/blog/wp-content/uploads/2014/12/webserver.zip

Connect GPIO00 to GND. (!!!)

python esptool.py --port AMA0 write_flash 0x00000 firmware/0x00000.bin 0x40000 firmware/0x40000.bin 0x12000 webpages.espfs

Git Repository: https://github.com/dubaurazvan/esp8266-wireless-switcher
Raspberry Pi + RFLink + Domoticz Beta
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
deennoo
Messages : 4036
Inscription : 25 janv. 2015, 02:00

Re: Programmer une esp8266 avec un RPI

Message par deennoo »

Merci !

(tu bloques a fallout4 ?? lol)

Un peu prise de tete depuis le PI alors que depuis windows c'est quand meme plus simple de mon avis.

API du skecth wirless switcher est interessante car il y a le retour d'etat.

Maintenant je t'invite a lire ce post : viewtopic.php?f=20&t=1153
De quoi se faire Plaisir et essayer d'aider...
http://www.domo-attitude.fr
jackslayter
Messages : 1040
Inscription : 30 sept. 2014, 14:40
Localisation : Isère (38)

Re: Programmer une esp8266 avec un RPI

Message par jackslayter »

deennoo a écrit :Merci !

(tu bloques a fallout4 ?? lol)
non , en plus je suis aussi sur Dirt Rally
deennoo a écrit :Un peu prise de tete depuis le PI alors que depuis windows c'est quand meme plus simple de mon avis.

API du skecth wirless switcher est interessante car il y a le retour d'etat.

Maintenant je t'invite a lire ce post : viewtopic.php?f=20&t=1153
en fait vu que mon rpi2 a remplacé mon rpib , j'ai un rpi de libre.
j'ai pas de arduino sans puce ou FTDI pour programmer la ESP
Raspberry Pi + RFLink + Domoticz Beta
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
Répondre