Search found 205 matches

by torwag
Mon Jan 07, 2019 9:50 am
Forum: ESP8266 boards
Topic: An ESP8266 Can't Monitor Serial Connection
Replies: 7
Views: 300

Re: Can Anyone Direct Me to I/O Serial Monitoring Example

So essentailly, you want to replace the RPi by an ESP running micropython? modem--serial-->ESP--GPIO-->relay The usb uart is not required as soon as your code is working right? It will be an autark system based on the following scheme. Modem: sends serial logs ESP: analyse serial logs depending on r...
by torwag
Mon Jan 07, 2019 8:30 am
Forum: ESP8266 boards
Topic: An ESP8266 Can't Monitor Serial Connection
Replies: 7
Views: 300

Re: Can Anyone Direct Me to I/O Serial Monitoring Example

So, reading again, I guess you have the following situation modem--serial-->PC---usb(serial)-->esp-->ESP-->relay in that case what you want to do is to rewrite the bouncer.py (which will be started on the PC!) to use the ESP to switch the relay thats all. In detail all you need to do is to redefine ...
by torwag
Mon Jan 07, 2019 8:10 am
Forum: ESP8266 boards
Topic: An ESP8266 Can't Monitor Serial Connection
Replies: 7
Views: 300

Re: Can Anyone Direct Me to I/O Serial Monitoring Example

Hi, not yet 100% sure what you are trying to achive. You want to switch on and off a modem depending on a certain state via a relay based on an esp? From where do you get the status? Where and how is the modem connected? For me it sounds like all you want is to use the esp as a serial connection-tri...
by torwag
Sun May 20, 2018 2:41 pm
Forum: ESP8266 boards
Topic: ESP8266 - micropython global variable does not work
Replies: 5
Views: 901

Re: ESP8266 - micropython global variable does not work

Hi, the problem is namespacing. The isledOn variable is defined once in the root name space and in functions. Thus, you actually have two different variables here, which simply have the same name. What you want to do, is to create a global variable. They are usually a bad idea, as they quickly can c...
by torwag
Thu May 03, 2018 2:10 pm
Forum: Other Boards
Topic: [NUCLEO-L476RG/STM32L476RGT6]Pin Association and DAC Error
Replies: 7
Views: 811

Re: [NUCLEO-L476RG/STM32L476RGT6]Pin Association and DAC Error

Hi, you might go to github to read in the source code files what is available and what is the pin assignment. E.g. https://github.com/micropython/micropython/tree/master/ports/stm32/boards/NUCLEO_L476RG Each board has a pin.csv file which depicts the relation between the physical pins and the naming...
by torwag
Thu Apr 05, 2018 7:23 am
Forum: The MicroPython pyboard
Topic: My pyboard is dead
Replies: 6
Views: 468

Re: My pyboard is dead

Hi, without looking into the schematic, I would say it is the voltage regulator. The schematics can be found on github. https://github.com/micropython/pyboard/blob/master/PYBv10b.pdf However, this is not a 8 pin IC. Thus without a little more information it is hard to guess. If it is indeed the volt...
by torwag
Mon Mar 05, 2018 8:48 am
Forum: ESP8266 boards
Topic: Wemos D1 Mini UART RX pin in MicroPython?
Replies: 5
Views: 1311

Re: Wemos D1 Mini UART RX pin in MicroPython?

Hi,

if the sensor communication does not require a lot of fast data sending, try the SoftUART approach.
viewtopic.php?f=16&t=2204&hilit=softuart

I was able to talk to a serial display from a d1mini using this library.
by torwag
Fri Mar 02, 2018 7:50 am
Forum: ESP32 boards
Topic: ESP32 - sta_if not defined
Replies: 2
Views: 588

Re: ESP32 - sta_if not defined

Hi, welcome to the forum. Please try to be specific about the problem in the post itself. Screenshots on an external page my not work for long and then, this thread turns into a useless piece for other users. As far as I can see you misunderstood the import nature of python. If you use import networ...
by torwag
Thu Nov 30, 2017 5:18 am
Forum: Development of MicroPython
Topic: building PYBv1.1 binary double FP + threading
Replies: 9
Views: 1078

Re: building PYBv1.1 binary double FP + threading

Hi,
you will find everything you need on github.

https://github.com/micropython/micropython
by torwag
Fri Nov 03, 2017 8:30 am
Forum: Hardware Projects
Topic: A power meter - using the Pyboard as a measuring instrument
Replies: 5
Views: 1628

Re: A power meter - using the Pyboard as a measuring instrument

The toroidal transformer is rated at 6VA - it was the smallest stocked at my usual supplier (CPC/Farnell). It fitted in the box so I used it. A smaller one would undoubtedly suffice if you can find one. As for hand tools I was trained in metalwork where we were required to produce work in mild stee...