Search found 29 matches

by laukejas
Tue Mar 17, 2020 1:21 am
Forum: ESP8266 boards
Topic: Problem getting HMC5883L to work
Replies: 14
Views: 3010

Re: Problem getting HMC5883L to work

Roberth, if I may bother you a little bit more... I accidentally burned down that HMC5883L I had, and I purchased another one from a much more reputable local vendor. But with this new HMC5883L, I am getting another error when I start to initialize it. This happens both with the HMC5883L library I q...
by laukejas
Mon Mar 16, 2020 9:49 pm
Forum: ESP8266 boards
Topic: Two different PWM frequencies at the same time
Replies: 3
Views: 1330

Two different PWM frequencies at the same time

Hi, I am making a robot project with Nodemcu V2, running MicroPython. I have two 6V DC motors, controlled through TB6612FNG. Motor speeds are controlled via PWM frequency and duty cycle. Frequency of 512 Hz works well for the whole duty cycle range, allowing good control of motor speed. However, I a...
by laukejas
Wed Mar 11, 2020 12:23 pm
Forum: ESP8266 boards
Topic: Problem getting HMC5883L to work
Replies: 14
Views: 3010

Re: Problem getting HMC5883L to work

Roberthh wrote:
Wed Mar 11, 2020 12:17 pm
Has the manufacturer of the board lied about the chip?
Obviously yes. It seems to be a common habit to use a QMC5883 instead HMC5883.
Thank you so very much for helping me solve this!!!
by laukejas
Wed Mar 11, 2020 11:10 am
Forum: ESP8266 boards
Topic: Problem getting HMC5883L to work
Replies: 14
Views: 3010

Re: Problem getting HMC5883L to work

Thank you very much, it is working now!!! But I don't exactly understand why. But how can there be a different chip? I checked the chip, and it says DB 5883 7008 on it. I am not finding much info on these numbers. Has the manufacturer of the board lied about the chip?
by laukejas
Wed Mar 11, 2020 10:38 am
Forum: ESP8266 boards
Topic: Problem getting HMC5883L to work
Replies: 14
Views: 3010

Re: Problem getting HMC5883L to work

I had made a class for an QMC5883, and indeed the I2C address is 13 or 0x0d. So you should use that one. The script which I used is here: https://github.com/robert-hh/QMC5883 Thank you for replying so quickly, Roberth. I tried running your code as described in github - copied the class, ran the imp...
by laukejas
Wed Mar 11, 2020 9:26 am
Forum: ESP8266 boards
Topic: Problem getting HMC5883L to work
Replies: 14
Views: 3010

Problem getting HMC5883L to work

Hi, I just started with MicroPython. I have a NodeMCU board (with CP2102), and I installed latest MicroPython firmware into it. Using UPyCraft as an IDE and uploader. I already did some rudimentary things, and now I'm trying to get a HMC5883L digital compass (on a GY-273 board ) to work. It uses i2c...
by laukejas
Tue May 07, 2019 9:44 am
Forum: ESP8266 boards
Topic: Accessing NodeMCU HTTP server from a different network
Replies: 4
Views: 1842

Re: Accessing NodeMCU HTTP server from a different network

I think that's much more a question of how fast your home internet is. Can do do video conferencing on your internet connection (e.g. skype, google hangouts, etc) -- that's basically the same thing. I think the bigger question for video streaming (regardless if you're connected directly via wifi or...
by laukejas
Sun May 05, 2019 9:00 pm
Forum: ESP8266 boards
Topic: Accessing NodeMCU HTTP server from a different network
Replies: 4
Views: 1842

Re: Accessing NodeMCU HTTP server from a different network

[quote=jimmo post_id=36279 time=1557038268 user_id=3071] Yeah, unfortunately 192.168.x.x is what's called a private address. Your router likely uses NAT to share your public address to the private addresses on your network. You're right, port forwarding is the simplest solution, but would require ro...
by laukejas
Thu May 02, 2019 5:32 pm
Forum: ESP8266 boards
Topic: Accessing NodeMCU HTTP server from a different network
Replies: 4
Views: 1842

Accessing NodeMCU HTTP server from a different network

Hi, I just started with NodeMCU and MicroPython. I have followed this tutorial (https://docs.micropython.org/en/latest/esp8266/tutorial/network_tcp.html) to set up a HTTP server for simple LED switching. My boot.py looks like this: import os try: import usocket as socket except: import socket from m...