Search found 27 matches

by pmulvey
Mon Nov 04, 2019 5:15 pm
Forum: ESP8266 boards
Topic: UART and REPL Issue
Replies: 6
Views: 497

Re: UART and REPL Issue

I have an arduino connected to the esp8266 via I2C. I have a simple command processor running on the arduino. I am sending commands to it and getting responses. The mp3 module is connected to the arduino and I am sending requests from the esp8266 to play clips specifying the track and folder number....
by pmulvey
Sun Nov 03, 2019 2:51 pm
Forum: General Discussion and Questions
Topic: [SOLVED] "Strange" behaviour reading I2C device
Replies: 1
Views: 244

[SOLVED] "Strange" behaviour reading I2C device

I was reading the I2C PCF8574 i/o expander and branching depending on results. This is a re-creation of the situation: from machine import I2C while True: i2c = I2C(scl=Pin(5), sda=Pin(4), freq=400000) x = i2c.readfrom(0x20, 1) #i2c returns 0x10 print ("First attempt: x = ", x, "and is type", type(x...
by pmulvey
Tue Oct 29, 2019 3:56 pm
Forum: ESP8266 boards
Topic: [SOLVED] OSError: [Errno 19] ENODEV
Replies: 0
Views: 729

[SOLVED] OSError: [Errno 19] ENODEV

I had perfectly good code addressing an I2C device, then it start raising the "OSError: [Errno 19] ENODEV". After pulling this code asunder I eventually discovered that my I2C device wasn't responding or had come off the I2C bus. Reconnecting it solved the problem. I seems that this error is thrown ...
by pmulvey
Mon Oct 28, 2019 10:15 am
Forum: ESP8266 boards
Topic: UART and REPL Issue
Replies: 6
Views: 497

Re: UART and REPL Issue

Just looking at the D1 Mini, it seems doable to cut the track from the CH340 to the 470 R resistor and insert a schottky diode.
by pmulvey
Mon Oct 28, 2019 9:37 am
Forum: ESP8266 boards
Topic: UART and REPL Issue
Replies: 6
Views: 497

Re: UART and REPL Issue

Thanks for that. Given this serial port limitation on the ESP8266 and also the difficulty (I think) in getting IR Tx and RX working under Micropython I was thinking of building another board with Arduino acting as an I2C slave and carrying out these "difficult" functions.
by pmulvey
Sat Oct 26, 2019 8:13 pm
Forum: ESP8266 boards
Topic: UART and REPL Issue
Replies: 6
Views: 497

UART and REPL Issue

I have a Grove MP3 V2 module that connects to the ESP8266 via a serial connection on the TX and RX pins. After a late night and pulling out the last few strands of my hair, the following morning I got to grips with why the ESP8266 was apparently being bricked and not responding to the REPL. The prog...
by pmulvey
Sat Oct 26, 2019 7:58 pm
Forum: General Discussion and Questions
Topic: My IDE configuration using Notepad++, ampy and Tera Term
Replies: 1
Views: 288

Re: My IDE configuration using Notepad++, ampy and Tera Term

This works great on my home laptop (Win 8.1) but when I tried it on the students' Win 7 machines it doesn't work. Seems to be something different going on at the DOS level. Anyway I made a grand improvement that does work. My Project has a workspace folder with a globals folder in this so I have a p...
by pmulvey
Wed Oct 16, 2019 10:26 pm
Forum: General Discussion and Questions
Topic: My IDE configuration using Notepad++, ampy and Tera Term
Replies: 1
Views: 288

My IDE configuration using Notepad++, ampy and Tera Term

I use Notepad++ for editing, ampy for downloading and Tera Term for serial terminal. In Notepad++ I use NPPExec to execute the following commands: NPP_SAVE ampy --port COM4 put $(FULL_CURRENT_PATH) reset.bat exit The file is first saved, then downloaded via COM4. The reset.bat file sends a Ctrl-D to...
by pmulvey
Sun Oct 13, 2019 12:09 pm
Forum: Programs, Libraries and Tools
Topic: Cannot get Vagrant Up
Replies: 4
Views: 300

Re: Cannot get Vagrant Up

Thanks Peter, I actually started to do that on my Linux Mint machine but hit a few more hurdles. I'll google my way through those hopefully. I resolved the situation for now by removing one of the modules. The overall project is a demo of the board's facilities and I suppose in practice my students ...
by pmulvey
Fri Oct 11, 2019 4:13 pm
Forum: Programs, Libraries and Tools
Topic: Cannot get Vagrant Up
Replies: 4
Views: 300

Cannot get Vagrant Up

I'm trying to get into frozen modules. It seems to be quite a task given that you need to use Virtual Box, GIT, and Vagrant. Is there any simpler way? I would be satisfied with .mpy files because I seem to be up against the blocks with my source code size and compiling on the esp8266. This the Vagra...