Forwarded from 🐍 Python & Raspberry 🐍 (F.Naserizadeh)
coding.pdf
1.2 MB
جزوه رمزنگاری 👇 به صورت پاور پوینت از طرف مهندس
@Spouyakazemian
@Spouyakazemian
Forwarded from Pouya Kazemian
3-روش های رمزنگاری سنتی.ppt
917 KB
Forwarded from Pouya Kazemian
final-cryptography.pptx
31.9 MB
Forwarded from C & micro & fpga
آموزش اتصال آردوینو به تلگرام.pdf
21.9 MB
آموزش اتصال آردوینو به تلگرام و کنترل رله👌
⚡️این جزوه در 60 صفحه تهیه شده است و دارای تصاویر از جزییات کار می باشد⚡️
@c_micro
⚡️این جزوه در 60 صفحه تهیه شده است و دارای تصاویر از جزییات کار می باشد⚡️
@c_micro
🌟 How to Connect an MP3002 ADC Chip to a Raspberry Pi
import time
import botbook_mcp3002 as mcp #
def readPotentiometer():
global potentiometer
potentiometer = mcp.readAnalog() #
def main():
while True: #
readPotentiometer() #
print("The current potentiometer value is %i " % potentiometer) #
time.sleep( 0.5) # s
if name = = "main":
main()
🌟🌟🌟🌟🌟🌟
botbook_mcp3002 library 👇
http://www.learningaboutelectronics.com/Code/botbook_mcp3002.txt
🔰 @raspberry_python
import time
import botbook_mcp3002 as mcp #
def readPotentiometer():
global potentiometer
potentiometer = mcp.readAnalog() #
def main():
while True: #
readPotentiometer() #
print("The current potentiometer value is %i " % potentiometer) #
time.sleep( 0.5) # s
if name = = "main":
main()
🌟🌟🌟🌟🌟🌟
botbook_mcp3002 library 👇
http://www.learningaboutelectronics.com/Code/botbook_mcp3002.txt
🔰 @raspberry_python
🌟 MQ-2 Smoke Sensor Circuit Built with a Raspberry Pi
import time
import botbook_mcp3002 as mcp #
smokeLevel= 0
def readSmokeLevel():
global smokeLevel
smokeLevel= mcp.readAnalog()
def main():
while True: #
readSmokeLevel() #
print ("Current smoke level is %i " % smokeLevel) #
if smokeLevel > 120:
print("Smoke detected")
time.sleep(0.5) # s
if_name_=="_main_":
main()
🌟🌟🌟🌟🌟
library mcp3002 👇
http://www.learningaboutelectronics.com/Code/botbook_mcp3002.txt
🔰 @raspberry_python
import time
import botbook_mcp3002 as mcp #
smokeLevel= 0
def readSmokeLevel():
global smokeLevel
smokeLevel= mcp.readAnalog()
def main():
while True: #
readSmokeLevel() #
print ("Current smoke level is %i " % smokeLevel) #
if smokeLevel > 120:
print("Smoke detected")
time.sleep(0.5) # s
if_name_=="_main_":
main()
🌟🌟🌟🌟🌟
library mcp3002 👇
http://www.learningaboutelectronics.com/Code/botbook_mcp3002.txt
🔰 @raspberry_python
#آموزش فیلتر در پایتون
🌟 How to Create a Filter Function in Python
n= [100,75,24,20,55]
over50= filter(lambda x: x>50,n)
print(list(over50))
[100, 75, 55]
🔰 @raspberry_python
🌟 How to Create a Filter Function in Python
n= [100,75,24,20,55]
over50= filter(lambda x: x>50,n)
print(list(over50))
[100, 75, 55]
🔰 @raspberry_python
#آموزش نمودار میله ای
Bar Plot in Matplotlib
🔰 @raspberry_python
Bar Plot in Matplotlib
import matplotlib.pyplot as plt
x= [1,2,3]
y= [20,40,60]
plt.bar(x,y)
plt.title('Bar Graph 1 of Customer Data')
plt.xlabel('Amount of People')
plt.ylabel('Money Spent')
plt.show()
🔰 @raspberry_python
#آموزش نمودار میله ای
🔰 @raspberry_python
import matplotlib.pyplot as plt
x= [1,2,3]
y= [20,40,60]
x2=[4,5,6]
plt.bar(x,y, label="Morning Group")
plt.bar(x2,y, label="Evening Group")
plt.title('Bar Graph 1 of Customer Data')
plt.xlabel('Amount of People')
plt.ylabel('Money Spent')
plt.legend()
plt.show()
🔰 @raspberry_python
#آموزش
Create a Stack Plot
🔰 @raspberry_python
Create a Stack Plot
import matplotlib.pyplot as plt
months= [x for x in range(1,13)]
mortgage= [700, 700, 700,
800, 800, 800,
850, 850, 850,
850, 850, 850]
utilities= [500, 300, 380,
200, 600, 550,
310, 620, 290,
320, 440, 400]
repairs= [100, 120, 100,
150, 850, 80,
120, 220, 240,
50, 60, 150]
plt.plot([],[], color='blue', label='mortgage')
plt.plot([],[], color='orange', label='utilities')
plt.plot([],[], color='brown', label='repairs')
plt.stackplot(months, mortgage, utilities, repairs, colors=['blue', 'orange', 'brown'])
plt.legend()
plt.title('Household Expenses')
plt.xlabel('Months of the year')
plt.ylabel('Cost')
plt.show()
🔰 @raspberry_python
#آموزش
🌟 Create Subplots of Graphs
🔰 @raspberry_python
🌟 Create Subplots of Graphs
import matplotlib.pyplot as plt
fig,axes= plt.subplots(nrows=2, ncols=3)
plt.tight_layout()
plt.show()
🔰 @raspberry_python