Forwarded from C & micro & fpga
آموزش اتصال آردوینو به تلگرام.pdf
21.9 MB
آموزش اتصال آردوینو به تلگرام و کنترل رله👌
⚡️این جزوه در 60 صفحه تهیه شده است و دارای تصاویر از جزییات کار می باشد⚡️
@c_micro
⚡️این جزوه در 60 صفحه تهیه شده است و دارای تصاویر از جزییات کار می باشد⚡️
@c_micro
void checkUpdate ()
{
Serial.print("Checking for firmware update... ");
t_httpUpdate_return ret = ESPhttpUpdate.update(
OTA_SERVER_HOST, OTA_SERVER_PORT, OTA_SERVER_PATH, FIRMWARE_VERSION
);
switch(ret) {
case HTTP_UPDATE_FAILED:
Serial.printf(
"Updated failed. Error (%d): %s\n",
ESPhttpUpdate.getLastError(),
ESPhttpUpdate.getLastErrorString().c_str()
);
break;
case HTTP_UPDATE_NO_UPDATES:
Serial.println("No update found.");
break;
case HTTP_UPDATE_OK:
Serial.println("Updated OK. Rebooting.");
ESP.restart();
break;
}
}
@micropython_iot
{
Serial.print("Checking for firmware update... ");
t_httpUpdate_return ret = ESPhttpUpdate.update(
OTA_SERVER_HOST, OTA_SERVER_PORT, OTA_SERVER_PATH, FIRMWARE_VERSION
);
switch(ret) {
case HTTP_UPDATE_FAILED:
Serial.printf(
"Updated failed. Error (%d): %s\n",
ESPhttpUpdate.getLastError(),
ESPhttpUpdate.getLastErrorString().c_str()
);
break;
case HTTP_UPDATE_NO_UPDATES:
Serial.println("No update found.");
break;
case HTTP_UPDATE_OK:
Serial.println("Updated OK. Rebooting.");
ESP.restart();
break;
}
}
@micropython_iot
from machine import Pin
from time import sleep
led = Pin(16, Pin.OUT)
while True:
led.high()
sleep(1)
led.low()
sleep(1)
gpio16 # D0
@micropython_iot
from time import sleep
led = Pin(16, Pin.OUT)
while True:
led.high()
sleep(1)
led.low()
sleep(1)
gpio16 # D0
@micropython_iot
تولید سیگنال صوتی با صدای یکنواخت با پایتون
import numpy as np
import wave
import struct
freq = 440.0
data_size = 40000
fname = "High_A.wav"
frate = 11025.0
amp = 64000.0
sine_list_x = []
for x in range(data_size):
sine_list_x.append(np.sin(2*np.pi*freq*(x/frate)))
wav_file = wave.open(fname, "w")
nchannels = 1
sampwidth = 2
framerate = int(frate)
nframes = data_size
comptype = "NONE"
compname = "not compressed"
wav_file.setparams((nchannels, sampwidth, framerate, nframes,
comptype, compname))
for s in sine_list_x:
wav_file.writeframes(struct.pack('h', int(s*amp/2)))
wav_file.close()
@micropython_iot
import numpy as np
import wave
import struct
freq = 440.0
data_size = 40000
fname = "High_A.wav"
frate = 11025.0
amp = 64000.0
sine_list_x = []
for x in range(data_size):
sine_list_x.append(np.sin(2*np.pi*freq*(x/frate)))
wav_file = wave.open(fname, "w")
nchannels = 1
sampwidth = 2
framerate = int(frate)
nframes = data_size
comptype = "NONE"
compname = "not compressed"
wav_file.setparams((nchannels, sampwidth, framerate, nframes,
comptype, compname))
for s in sine_list_x:
wav_file.writeframes(struct.pack('h', int(s*amp/2)))
wav_file.close()
@micropython_iot
ترسیم شکل موج فایل صوتی با پایتون
import matplotlib.pyplot as plt
import numpy as np
import wave
import sys
spf = wave.open('file name.wav','r')
signal = spf.readframes(-1)
signal = np.fromstring(signal, 'Int16')
plt.figure(1)
plt.title('Signal Wave...')
plt.plot(signal)
plt.show()
@micropython_iot
import matplotlib.pyplot as plt
import numpy as np
import wave
import sys
spf = wave.open('file name.wav','r')
signal = spf.readframes(-1)
signal = np.fromstring(signal, 'Int16')
plt.figure(1)
plt.title('Signal Wave...')
plt.plot(signal)
plt.show()
@micropython_iot
Forwarded from 🐍 Python & Raspberry 🐍 (F.Naserizadeh)
https://thepihut.com/products/raspberry-pi-3-model-a-plus?utm_source=The+Pi+Hut&utm_campaign=4bc6542880-EMAIL_CAMPAIGN_2018_10_19_COPY_01&utm_medium=email&utm_term=0_a4028431b8-4bc6542880-77691809&mc_cid=4bc6542880&mc_eid=1a60bb02ab
🌟🌟مدل جدید raspberry pi
🔰 @raspberry_python
🌟🌟مدل جدید raspberry pi
🔰 @raspberry_python
The Pi Hut
Raspberry Pi 3 Model A+
The Raspberry Pi 3 Model A+ is a compact yet powerful Raspberry Pi, part of the Raspberry Pi 3 range of boards. Just like the Raspberry Pi 3 Model B+, it boasts a 64-bit quad-core processor running at 1.4 GHz, dual-band 2.4 GHz and 5 GHz wireless LAN, and…
Forwarded from C & micro & fpga (F.Naserizadeh)
Forwarded from 🐍 Python & Raspberry 🐍 (F.Naserizadeh)
Raspbian OS Programming with the Raspberry Pi
کتاب جدید رزبری پای به همراه اینترنت اشیا 👇
🌟انتشار 2019🌟
🔰 @raspberry_python
کتاب جدید رزبری پای به همراه اینترنت اشیا 👇
🌟انتشار 2019🌟
🔰 @raspberry_python
Forwarded from 🐍 Python & Raspberry 🐍 (F.Naserizadeh)
Agus_Kurniawan_Raspbian_OS_Programming.pdf
9.7 MB
Raspbian OS Programming with the Raspberry Pi
کتاب جدید رزبری پای به همراه اینترنت اشیا
🌟انتشار 2019🌟
🔰 @raspberry_python
کتاب جدید رزبری پای به همراه اینترنت اشیا
🌟انتشار 2019🌟
🔰 @raspberry_python
Hands-On ESP8266: Mastering Basic Peripherals
آموزش خوب برای esp8266 👇
🌟سال انتشار 2018🌟
🔰 @micropython_iot
آموزش خوب برای esp8266 👇
🌟سال انتشار 2018🌟
🔰 @micropython_iot
Hands-On-ESP8266-Mastering-Basic-Peripherals.pdf
12.8 MB
Hands-On ESP8266: Mastering Basic Peripherals
(NodeMcu)
آموزش خوب برای esp8266
🌟سال انتشار 2018🌟
🔰 @micropython_iot
(NodeMcu)
آموزش خوب برای esp8266
🌟سال انتشار 2018🌟
🔰 @micropython_iot
Particle Electron is a tiny Cellular(2G/3G) based development kit that can be used for creating connected projects and applications. It comes with a Particle SIM card with a data plan for low bandwidth applications.
#iot
@micropython_iot
#iot
@micropython_iot
Particle Photon is a very small Wi-Fi development kit which is designed for creating connected projects and applications for the Internet of Things(IoT). It has a powerful 120Mhz ARM Cortex M3 microcontroller with an on-board Broadcom Wi-Fi chip.
#iot
@micropython_iot
#iot
@micropython_iot
Forwarded from 🐍 Python & Raspberry 🐍 (F.Naserizadeh)
Forwarded from 🐍 Python & Raspberry 🐍 (F.Naserizadeh)
Marco_Schwartz_Internet_of_Things.pdf
13.7 MB