Search found 6 matches

by Ised
Fri Aug 30, 2019 6:44 pm
Forum: ESP8266 boards
Topic: ssd1306 using I2C on the esp8266
Replies: 54
Views: 64846

Re: ssd1306 using I2C on the esp8266

I would temporarily add a print statement in the loop: print(temp, hum) Then you would learn whether the problem is the values not getting updated or the results not being rendered to the screen. Thanks for the answer. but the first time I connected without a display. and used print. information in...
by Ised
Fri Aug 30, 2019 6:32 am
Forum: ESP8266 boards
Topic: ssd1306 using I2C on the esp8266
Replies: 54
Views: 64846

Re: ssd1306 using I2C on the esp8266

I would temporarily add a print statement in the loop: print(temp, hum) Then you would learn whether the problem is the values not getting updated or the results not being rendered to the screen. Thanks for the answer. but the first time I connected without a display. and used print. information in...
by Ised
Thu Aug 29, 2019 6:27 pm
Forum: ESP8266 boards
Topic: ssd1306 using I2C on the esp8266
Replies: 54
Views: 64846

Re: ssd1306 using I2C on the esp8266

Hello! I am trying to display information from dht 11 to oled display 128x64. I am using the ssd1306.py library. Information is displayed, but is not updated. What am I doing wrong? from machine import Pin, I2C import ssd1306 import dht from time import sleep i2c = I2C(-1, scl=Pin(5), sda=Pin(4)) ol...
by Ised
Mon Aug 26, 2019 6:55 pm
Forum: ESP8266 boards
Topic: Servo library
Replies: 28
Views: 31437

Re: Servo library

The way that servos work is that they send a 1-2 msec long pulse at about 50 or 60 Hz. Lets say we wanted to use 50 Hz. That corresponds to a period of 20 msec. Since we want the pulse to be between 1 and 2 msec, then we want it to be between 1/20 = 0.05 and 2/20 = 0.10 or 5-10% The duty is specifi...
by Ised
Mon Aug 26, 2019 6:52 pm
Forum: ESP8266 boards
Topic: Servo library
Replies: 28
Views: 31437

Re: Servo library

The way that servos work is that they send a 1-2 msec long pulse at about 50 or 60 Hz. Lets say we wanted to use 50 Hz. That corresponds to a period of 20 msec. Since we want the pulse to be between 1 and 2 msec, then we want it to be between 1/20 = 0.05 and 2/20 = 0.10 or 5-10% The duty is specifi...
by Ised
Mon Aug 26, 2019 6:13 pm
Forum: ESP8266 boards
Topic: Servo library
Replies: 28
Views: 31437

Re: Servo library

Good day to all! I am a beginner user esp8266 / connected servo sg 90 (red vin, black gnd, orange pin14) . I use the code from machine import Pin, PWM servo = PWM (Pin (14), freq = 50, duty = 77) servo.duty(122) but it does not work. But Arduino uno, this servo drive works. What am I doing wrong? se...