Guayaquil - Ecuador
- Presentacion de expositores (3 mins)
- Presentación de la comunidad FunPython - ¿Qué hacemos? ¿Por qué lo hacemos? Nuestra filosofía y forma de trabajo. (3 mins) JL
- Presentación de lo utilizado (3 mins) VS
- MicroPython
- MicroControladores ESP
- Porque MicroPython (3 mins) JL
- Syntaxix MicroPython: (5 mins) VS
- Sentencias: if, for, while
- Aplicaciones:
- Conexion Wifi (3 mins) VS
- Tiras LED (5 mins) JL
- manejar motores (servomotor, motor DC) (10 mins)
- Soy Valeria Solano, estudiante de ingeniería Mecatrónica en la ESPOL, me apasiona la robótica y poder generar un impacto social y tecnológico a través de sus aplicaciones. Siempre busco participar en nuevos retos y proyectos para aprender de ellos y así mismo poder transmitir mis conocimientos a otros. Intento siempre demostrar de lo que somos capaces las mujeres en la ingeniería y la ciencia, rompiendo paradigmas e inspirando a otros a hacerlo también.
- Guayaquileño pero ciudadano del mundo, Emprendedor,#developer #hardwarelibre y #softwarelibre, #chasquis #micropython para Iberoamerica founder: @funpython @mrbot
- Implementacion eficiente de Python.
- Permite transferir códigos del escritorio a un microcontrolador o un sistema embebido.
- Librerias de Python y funciones avanzadas-
- microcontroladores de bajo costo
- Bluetooth y WiFi
- Compatibilidad con diferentes protocolos de comunicación (I2C, SPI, I2S, 1-Wire, UART).
- if
num=3.4ifnum>0:
print("Número positivo")
elifnum==0:
print("Cero")
else:
print("Número negativo")- While
i=1whilei<6:
print(i)
ifi==3:
breaki+=1- conexion wifi
- tiras LED
- manejar motores (servomotor, motor DC)
importnetworkimportsocketimporttimewlan=network.WLAN(network.STA_IF)
wlan.active(True)
a=wlan.scan()
foriinrange(0,len(a)):
print(a[i][0])importnetworkwlan=network.WLAN(network.STA_IF)
wlan.active(True)
ifnotwlan.isconnected():
print('connecting to network...')
wlan.connect("","")
whilenotwlan.isconnected():
passprint('network config:', wlan.ifconfig())importsocketimporttimehtml="""<html> <head> <meta charset="uft-8"/> <title>Hola Mundo en HTML</title> </head> <body> <h1>Hola Mundo Fun</h1> </body></html>"""#Setup Socket WebServers=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
time.sleep(1)
s.bind(('', 80))
s.listen(5)
whileTrue:
conn, addr=s.accept()
request=conn.recv(1024)
request=str(request)
print(request) response=htmlconn.send(response)
conn.close()frommachineimportPinfromneopixelimportNeoPixelimporttimepin=Pin(14, Pin.OUT) # set GPIO0 to output to drive NeoPixelsnp=NeoPixel(pin, 100) # create NeoPixel driver on GPIO0 for 8 pixelsforiinrange(100): np[i] = (255,20,147)
np.write()
time.sleep_ms(100)frommachineimportPinfromneopixelimportNeoPixelimporttimepin=Pin(14, Pin.OUT) # set GPIO0 to output to drive NeoPixelsnp=NeoPixel(pin, 100) # create NeoPixel driver on GPIO0 for 8 pixelsforiinrange(100): ifi%2==0:
np[i] = (255,20,147)
np.write()
time.sleep_ms(100)
ifi%2!=0:
np[i] = (0,255,0)
np.write()
time.sleep_ms(100)importmachineimportServoserv=Servo.Servo(machine.Pin(13))
serv.write_angle(degrees=100)importmachineimportServoimporttimeserv=Servo.Servo(machine.Pin(13))
foriinrange(180):
serv.write_angle(degrees=i)
time.sleep_ms(50)"Yo no conozco el futuro. No he venido para decirles cómo acabará todo esto. Al contrario, he venido a decirles cómo va a comenzar" - Neo-Matrix, 1999.
2 Fuentes/adaptadores (12 V) 2 Cables USB 1 Tiras LED 1 Servo Motor 1 Tarjeta de voltaje 1 ESP 32 Jumpers Macho-Macho y Macho-Hembra 1 Multimetro 1 Protoboard 1 Web Cam
Dieses Werk ist lizenziert unter einer Creative Commons Namensnennung 4.0 International Lizenz.
