Telegram Group & Telegram Channel
#جلسه_سوم
#میکرو_پایتون

راه اندازی ADC در میکرو پایتون!

جهت راه اندازی ADC (مبدل انالوگ به دیجیتال )

ابتدا کتابخانه Machine را فراخواتی میکنیم .

import machine

سپس پین adc مربوط به برد میکروپایتون خود را شناسایی کرده و آنرا در دستور زیر قرار دهید

adc=machine.ADC(machine.Pin(Pin number))

به جای عبارت Pin number شماره پین Adc برد خودرا وارد نمایید

و حال تابع adc.read را به نمایش بگذارید

Print(adc.read())

در نتیجه نسبت به ولتاژ وارده به پین که بین ۰ تا ۳.۳ باید باشد و اگر ولتاژ بالاتری از این حد دارید با تقسیم مقاومتی باید این ولتاژ را به ۳.۳ رسانده و به پین اعمال کنید . مقدار دیجیتال شده ولتاژ انالوگ‌ وارده را مشاهده میکنید .


اسکریپت کامل 👇👇👇

#Micro Python ADC
#----------------------------------------
#Dev By Eng Meysam Mz
#----------------------------------------
#----------------
import machine
Import time

adc=machine.ADC(machine.Pin(36))

While 1:
print(adc.read())
time.sleep(1)

#-----------------

@Raspberryproject
@Raspberry_Python
@micropython_iot



tg-me.com/micropython_iot/44
Create:
Last Update:

#جلسه_سوم
#میکرو_پایتون

راه اندازی ADC در میکرو پایتون!

جهت راه اندازی ADC (مبدل انالوگ به دیجیتال )

ابتدا کتابخانه Machine را فراخواتی میکنیم .

import machine

سپس پین adc مربوط به برد میکروپایتون خود را شناسایی کرده و آنرا در دستور زیر قرار دهید

adc=machine.ADC(machine.Pin(Pin number))

به جای عبارت Pin number شماره پین Adc برد خودرا وارد نمایید

و حال تابع adc.read را به نمایش بگذارید

Print(adc.read())

در نتیجه نسبت به ولتاژ وارده به پین که بین ۰ تا ۳.۳ باید باشد و اگر ولتاژ بالاتری از این حد دارید با تقسیم مقاومتی باید این ولتاژ را به ۳.۳ رسانده و به پین اعمال کنید . مقدار دیجیتال شده ولتاژ انالوگ‌ وارده را مشاهده میکنید .


اسکریپت کامل 👇👇👇

#Micro Python ADC
#----------------------------------------
#Dev By Eng Meysam Mz
#----------------------------------------
#----------------
import machine
Import time

adc=machine.ADC(machine.Pin(36))

While 1:
print(adc.read())
time.sleep(1)

#-----------------

@Raspberryproject
@Raspberry_Python
@micropython_iot

BY Micropython & IOT


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/micropython_iot/44

View MORE
Open in Telegram


Micropython & IOT Telegram | DID YOU KNOW?

Date: |

NEWS: Telegram supports Facetime video calls NOW!

Secure video calling is in high demand. As an alternative to Zoom, many people are using end-to-end encrypted apps such as WhatsApp, FaceTime or Signal to speak to friends and family face-to-face since coronavirus lockdowns started to take place across the world. There’s another option—secure communications app Telegram just added video calling to its feature set, available on both iOS and Android. The new feature is also super secure—like Signal and WhatsApp and unlike Zoom (yet), video calls will be end-to-end encrypted.

Look for Channels Online

You guessed it – the internet is your friend. A good place to start looking for Telegram channels is Reddit. This is one of the biggest sites on the internet, with millions of communities, including those from Telegram.Then, you can search one of the many dedicated websites for Telegram channel searching. One of them is telegram-group.com. This website has many categories and a really simple user interface. Another great site is telegram channels.me. It has even more channels than the previous one, and an even better user experience.These are just some of the many available websites. You can look them up online if you’re not satisfied with these two. All of these sites list only public channels. If you want to join a private channel, you’ll have to ask one of its members to invite you.

Micropython & IOT from us


Telegram Micropython & IOT
FROM USA