Sale! NodeMCU WiFi Development Board View larger

Imaginile sunt utilizate exclusiv cu titlu de prezentare. Fotografiile nu creează obligații contractuale.

NodeMCU WiFi Development Board

0104110000003027

New product

NodeMCU is an open source IoT platform. It includes firmware which runs on the ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which is based on the ESP-12 module.


See description for more details about the product.

Add to cart now!

More details

296 Items

28,99 lei
tax incl.

Valid in the limit of the available stock

The price includes the costs for collection, treatment and ellimination of WEEE

-8,00 lei

36,99 lei tax incl.

Add to wishlist

More info

Description

Board developed WiFi-based ESP8266, an integrated circuit that contains modules GPIO, PWM, IIC, 1-Wire and ADC, all on one plate and easy to use syntax like Arduino for access to hardware and API style NodeJS for use network.

Grid connection example:

print(wifi.sta.getip())
--nil
wifi.setmode(wifi.STATION)
wifi.sta.config("SSID","password")
print(wifi.sta.getip())
--192.168.18.110

Example of I / O:

pin = 1
gpio.mode(pin,gpio.OUTPUT)
gpio.write(pin,gpio.HIGH)
gpio.mode(pin,gpio.INPUT)
print(gpio.read(pin))

HTTP client example:

-- A simple http client
conn=net.createConnection(net.TCP, false)
conn:on("receive", function(conn, pl) print(pl) end)
conn:connect(80,"121.41.33.127")
conn:send("GET / HTTP/1.1rnHost: www.nodemcu.comrn"
.."Connection: keep-alivernAccept: */*rnrn")

HTTP server example:

-- a simple http server
srv=net.createServer(net.TCP)
srv:listen(80,function(conn)
     conn:on("receive",function(conn,payload)
     print(payload)
    conn:send("</code></pre>
<h1>Hello, NodeMCU.</h1>
<pre><code>")
          end)
   end)

PWM example:

function led(r,g,b)
       pwm.setduty(1,r)
       pwm.setduty(2,g)
       pwm.setduty(3,b)
end
pwm.setup(1,500,512)
pwm.setup(2,500,512)
pwm.setup(3,500,512)
pwm.start(1)
pwm.start(2)
pwm.start(3)
led(512,0,0) -- red
led(0,0,512) -- blue

PWM example:

function led(r,g,b)
       pwm.setduty(1,r)
       pwm.setduty(2,g)
       pwm.setduty(3,b)
end
pwm.setup(1,500,512)
pwm.setup(2,500,512)
pwm.setup(3,500,512)
pwm.start(1)
pwm.start(2)
pwm.start(3)
led(512,0,0) -- red
led(0,0,512) -- blue

Sample code for LED flashing (blinking):

lighton=0
tmr.alarm(0,1000,1,function()
if lighton==0 then
     lighton=1
     led(512,512,512)
     -- 512/1024, 50% duty cycle
else
     lighton=0
     led(0,0,0)
end
end)

Example of interfacing with sensors:

-- read temperature with DS18B20
t=require("ds18b20")
t.setup(9)
addrs=t.addrs()
-- Total DS18B20 numbers, assume it is 2
print(table.getn(addrs))
-- The first DS18B20
print(t.read(addrs[1],t.C))
print(t.read(addrs[1],t.F))
print(t.read(addrs[1],t.K))
-- The second DS18B20
print(t.read(addrs[2],t.C))
print(t.read(addrs[2],t.F))
print(t.read(addrs[2],t.K))
-- Just read
print(t.read())
-- Just read as centigrade
print(t.read(nil,t.C))
-- Don't forget to release it after use
t = nil
ds18b20 = nil
package.loaded["ds18b20"]=nil


External Resources


Don't delay, buy today.


Add to cart now!

Reviews

Grade 
01/26/2020

NodeMCU ESP8266

Pentru cei care doresc sa il foloseasca pe breadboard, atentie ca este versiunea 0.9 si nu lasa spatiu pentru pini.

  • 4 out of 4 people found this review useful.
Grade 
02/14/2018

NodeMCU/ESP8266/CP1201

Destul de ok!
Am folosit-o intr-o aplicatie m2m si comunicatia MQTT intre acest nodeMCU si un Rpi 3 model B. intr-o retea locala a fost in regula!
La acest vi-l recomand cu incredere pt aplicatiile voastre IoT.

  • 17 out of 18 people found this review useful.

Write your review!

Write a review

NodeMCU WiFi Development Board

NodeMCU WiFi Development Board

NodeMCU is an open source IoT platform. It includes firmware which runs on the ESP8266 Wi-Fi SoC from Espressif Systems, and hardware which is based on the ESP-12 module.


See description for more details about the product.

Add to cart now!

Customers who bought this product also bought: