Lekce 12 - Posuvný registr 74HC595

16.03.2013 19:09

V dnešním dílu si něco řekneme o posuvném registru 74HC595 (Shift Register). Dále si ukážeme několik příkladů jeho využití. Takže co vůbec posuvný registr dělá? V zásadě je to soustava klopných obvodů, kterými se logická informace posouvá dále pomocí hodinového impulsu. K vysvětlení posuvný registr má celkem má celkem pro nás potřebné 3 vstupy (SER, SRCLK, SCLK)  a celkem v našem případě 8 výstupů (QA - QH). 

Z toho již vyplývá trošku, že k ovládání 8 výstupů je zapotřeba pouze 3 piny na Arduinu. (pozn. v zapojení posuvných registrů v kaskádě je počet výstupů mohonásobně vyšší - vysvětlíme a ukážemě později). K vysvětlení samotné funkce. Když přijde hodinový signál na SRCLK posune se logická hodnota se SER do posuvného registru. Pro naše účely tam pro vysvětlení takto posuneme do obvodu 8 různých hodnot. Takto ovšem můžeme do registru zapisovat pouze když bude na vstupu SCLK logická 0. Po zápisu a přepnutí SCLK do stavu logické 1 se data zobrazí na výstupech. 

Pro naše účely si obvod zapojíme. Budeme potřebovat nepájivé kontakní pole, posuvný registr 74HC595, led diody ( v mém případě jsem použil LED baragraf), odpory k diodám (1,3 kOhm), propojovací kablíky. Nejdříve si na nepájivém kontaktním poli zapojíme napájení posuvného registu. U tohoto typu je to +5V na vývodu 16 a GND na vývodu 8. Potom ještě připojíme vývod 10 na +5V a vývod 13 na GND. Podle obrázku obvodu - zapojení vývodů zapojíme vstup sériových dat na pinu 14 (SER) do Arduina pin 2 (modrý kablík na fotu) a hodinový signál vývod 11 (SRCLK) na Arduino pin 4 a nakonec zapojíme RCLK z vývodu 12 na Arduino pin 3. Výstupy z registru jsou na vývodu 15 (to je Qa) a dále na vývodech 1 - 7 (Qb - Qh). Ty povedou k LED diodám na + a dále přes odpor (nutno spočítat u mě cca 1,3 kOhm - spíš víc než míň). Potřeba je tedy 8 ledek pro jeden registr.  

Obrázek zapojení pro ilustraci s Arduinem UNO (pozor na nastavení pinu pro komunikaci v programu !!! (obrázek převzatý ze serveru abs.stijncoppens.com)

 

Pro větší přehlednost jsem registr zapojil na 2 nepájivé kontaktní pole, ale s přehledem se vejdou i na jedno. Na obrázku níže zapojení napájení. 

Zapojení napájení a vývodu 10 a 13

 

Kompletně zapojený obvod i s LED diodami (LED baragraf), na obrázku je chyba označená oranžovou šipkou - nějakým nedopatřením se vývod obvodu 10 dostal na GND místo na +5V (ač je červený a svou orientaci značí jasně :-). Prosím tedy přepojte pokud nemáte na +5V. V předchozím obrázku tato chyba není.

Na tomto obrázku je jasné, že k ovládání posuvného registru stačí 3 piny z Arduina

 

Program není složitý, jak sami můžete vidět:

Pokud jste vše správně zapojili, výsledek by měl vapadat jako na obrázku níže. Dle programu jsme do Arduina odeslali hodnotu 10101010, podle které se nám výstupy nastavily.Odeslání proběhlo pomocí funkce ShiftOut, ketrá nám právě sama odešle i s hodinovým signálen data na určený pin. Zkuste si sami změnit binární hodnotu a uvidíte, že i výstup bude jiný.  

Na obrázku svítí každá druhá LEDka z prvních 8. Poslední 2 nejsou zapojeny, prože výstupů je jenom 8

Aby jsme neposílali do registruje jen jednu 8 bitovou hodnotu, trošku si program upravíme:

Jak po spupštění můžete, vidět vytvořili jsme si takové běžící světloa. Efekt je uložen v poli data, kde máme uloženo 14 8bitových hodnot. Sami si sekvenci můžete upravit podle svého, nebo jí i rozšířit.

Nyní si vysvětlíme jak zapojit dva registry do kaskády. Jak jste si všimli, jeden vývod tzv. posuvného regostu je nezapojen. Jedná se QH'. Z tohoto pinu tzv. přetečou data, která byla v registu. Toho můžeme využít a zapojit další posuvný regist. Data z QH' budou zapojena do vývodu SER (14) na registru.

Zapojení s Arduinem UNO a 2 registry

 

Na obrázku je videt modrý vodič z QH' (9), kterým se posouvají data do druhého registru na SER (14) 

 

Kód pro toto zapojení se neliší skoro vůbec od našeho zakládního kódu s jedním posuvným registrem:

Pro efekt běžícího světla je kód zde:

Jak můžete v kódu vidět data do registru pošleme pomocí funkce shiftOut() dvakrát. První pro druhý regist (nejdrívě se samozřejmně načtou do prvního) a podruhé pro první registr (při druhém volání funkce se data posunou z prvního do druhého).

Aby, jsme také registry mohli využít také smysluplně zkusíme si připojit k registrům také 2 číslice 7-segmentového dipleje. Kód, který je pod obrázkem počítá s tím, že číslovky mají společný +, a jednotlivé segmenty se rozsvicují přivedením GND (země) na jednotlivé vývody LED dipleje a samořejmně přes adekvátní odpor. (U mě opět cca 1,3 kOhm).

Na přoloženém videu můžete vidět, že jsem připojil v jednom případě také třetí registr. Registrů můžete za sebou zapojit kolik chcete. Dají se využít i v mnoha jiných případech, ale to je už na vás. Tak doufám, že vše bylo pochopeno a příště naschledanou.

Zpět

Diskusní téma: Lekce 12 - Posuvný registr 74HC595

Datum
Vložil
Titulek

Barcelona roof cleaning

Эта весьма хорошая фраза придется как раз кстати

Datum
Vložil
Titulek

Bazuka www.yandex.ru

Bazuka www.yandex.ru

Datum
Vložil
Titulek

Bazuka www.yandex.ru

Bazuka www.yandex.ru

Datum
Vložil
Titulek

Bazuka www.yandex.ru

Bazuka www.yandex.ru

Datum
Vložil
Titulek

[GET] YouTube Video Scraper from playlists.

Videostat YouTube ToolKit - a set of 17 tools for searching, creating, and promoting on YouTube.
Launch your own successful YouTube channels and discover new ways to earn money with the help of the best set of tools.

Website: videostat.pw

You will be able to find the top niches with high demand and low competition. For any period, on any subject, country and language.

You will be able to find previously growing channels that were able to gain a lot of views or subscribers in a short time. Thus, you will be able to see how they managed it and try to use their successful experience.

You will be able to find videos that were uploaded to channels with a small number of subscribers 1-2 days ago, but have already managed to gain a lot of views. Thus, you can see the popular niches or formats that the authors used and repeat their success.

You will be able to collect the top search queries that are most searched for on YouTube right now, as well as collect and use the most highly effective keywords in the title, description and tags.

You will be able to analyze video trends from more than 100 countries with just 1 button.

You can download videos from YouTube in the best quality, whole channels or playlists.

You will be able to unify your videos in order to create large grids of channels for the overflow of traffic to other videos by links or end screensavers.

You will be able to speed up indexing and promotion in search engines using the automatic generation of more than 5,000 backlinks for YouTube videos.

And much more.


Statistics service for working with YouTube channels and videos videostat.pw

Save time and money on finding profitable niches, creating and promoting videos.
Get more views, subscribers and earn more with our YouTube author tools.

Read more on the website: videostat.pw/toolkit

What tools are included in the kit?
This set of tools will help you find inspiration, create content, promote your channel and earn money from your videos. With everything at your fingertips, you'll be on your way to becoming a YouTube sensation in no time!

YouTube Keyword Video Scraper.
Allows you to collect up-to-date data on popular YouTube videos in multithreaded mode. For any period, on any subject, country and language.

For example, you can collect videos that were uploaded to channels with a small number of subscribers 1-2 days ago, but have already managed to gain a lot of views. Thus, you can see the popular niches or formats that the authors used and repeat their success.

YouTube Channel Scraper by keywords.
Allows you to collect up-to-date data on popular YouTube channels in multithreaded mode. For any period, on any subject, country and language.

For example, you can find channels that were created 1-2 days ago, but have already managed to gain a lot of views or subscribers. Thus, you can see the popular niches or formats that the authors used and repeat their success.

Video Unicalization.
A tool for massively unifying videos and bypassing Content ID. This is not just a change of md5 with a change in brightness and contrast, but a complete, deep processing of the video sequence and audio track.

More than 100 ready-made and proven options for unicalization with video processing, as well as with audio track processing with automated effects of approximation, mirroring, movement, rotation, repetition and random frame. Everything is in order to accurately select a reliable option of uniqueness for your specific case.

Search Query Scraper.
A tool for finding the best keywords to promote videos

Do you want more people to see your videos? Get a list of keywords that interest your audience and use them to create videos on topics that are exactly looking for. Help your viewers find your videos online by using the most highly effective keywords in the title, description and tags.

YouTube Video Downloader.
A tool for mass downloading videos from YouTube

Allows you to download videos from Youtube from a list of links with a choice of the quality you need. Makes it easier to download multiple videos at the same time, so you can save time. It's fast, efficient and easy to use. No more spending hours downloading each video individually!

YouTube Subtitles Downloader.
A tool for mass downloading subtitles from YouTube

This tool is designed to help users massively download subtitles from YouTube from a list of links with a choice of format (text or xml) and automatic translation into other languages. It is easy to use and extremely fast, which makes it a handy tool for anyone who needs to download subtitles from YouTube regularly.

YouTube SEO Indexator.
A tool for promoting and accelerating indexing in search engines, using automatic generation of more than 5,000 backlinks for YouTube videos

Unlike other SEO tools, a database of pre-selected websites is not required to get backlinks. This is a completely working technology, proven over the years. A program that will help generate more than 5,000 backlinks, tell search robots about them and help your YouTube videos in search promotion.

YouTube Scraper of email addresses of channel authors.
Allows you to collect additional data about the authors of the channels from the list of links.

In this mode, data is collected about the Email address that is left in the description and links specified in the profile to social networks, websites, etc. The report also includes detailed data about channels, the author's name, the number of subscribers, the total number of views on the author's channel, the total number of videos on the author's channel, the date of creation of the channel, the Country of the channel and the Link to the author's channel.

YouTube Video Trends Scraper.
Allows you to collect data on all videos that are currently in the YouTube Trends section.

The report collects all the basic data about the videos and channels of authors who have fallen into YouTube trends in 107 countries. This section serves as a platform for regular videos and video Shorts that interest a wide range of viewers. These can be new clips of famous artists or movie trailers, as well as viral videos.

YouTube Keyword Playlist Scraper.
Allows you to collect data about playlists from YouTube search results in real time.

In the report, you get the following data: Playlist name, Description, Publication Date, Number of videos, Playlist Status, Playlist Link, Author Name, Number of subscribers, Total number of views on the author's channel, Total number of videos on the author's channel, Channel Creation Date, Channel Country and Link to the author's channel.

YouTube Video Scraper from playlists.
Allows you to collect data about videos from playlists in YouTube

The report contains all the same data as when parsing videos from search results. Detailed information about the videos themselves and about the authors' channels.

YouTube Video Scraper from channels.
Allows you to collect data about videos from Youtube channels

If you manage a Youtube channel or want to launch it, this tool will be invaluable for you. It allows you to collect video data from any Youtube channels so that you can see what works and what doesn't. This way you can make changes to improve your channel and get more views. This tool allows you to collect information about all videos from a list of links to the necessary YouTube channels. Saves all important indicators to the report.

YouTube Scraper of broadcasts by keywords.
Allows you to collect data about broadcasts from YouTube search results in real time.

Helps to collect broadcast data from search results. Now you can track changes and trends on YouTube as they occur and make better decisions about your content strategy. A search results filter is provided: By default, By publication date, By rating, By number of views, By title. There is a possibility to choose the parsing of broadcasts of those that are live, that have already been completed and that are just getting ready for broadcast.

YouTube Scraper of similar videos.
Allows you to collect data about videos similar to YouTube in real time.

If you are looking for a way to collect data about similar videos in real time from YouTube data, this is the perfect solution. Parsing is performed on the basis of a prepared list of links to videos for which you need to collect similar ones. It allows you to quickly and easily collect information about what is popular on YouTube so that you can make more informed decisions about your own video content.

YouTube Video Comment Scraper.
Allows you to collect data about comments and their authors on certain videos.

This data collection tool is essential for authors who want to gain a deep understanding of customer sentiment. It allows you to collect data about comments and their authors for certain videos, which gives valuable information about the needs and desires of your viewers. Parsing is performed on the basis of a prepared list of links to videos.

Video Quiz Generator.
Creates unique videos (video quiz with question and answers)

Do you want to add interactivity and fun to your videos? Use our tool to create unique video quizzes! With this easy-to-use tool, you can add questions and answers to your videos and engage your audience in a whole new way. It works very simply. Specify a file with questions, a folder with pictures, music and sound effects. At the output you get a ready-made unique video. Several modes allow you to generate such videos separately, as well as automatically merge with the video after the unification.

Read more on the website: videostat.pw/toolkit

Get access to the best kit of 17 tools Right Now!
Lifetime License, Free Updates, No subscription fee!

Datum
Vložil
Titulek

YouTube Parser of similar videos.

Videostat YouTube ToolKit - a set of 17 tools for searching, creating, and promoting on YouTube.
Launch your own successful YouTube channels and discover new ways to earn money with the help of the best set of tools.

You will be able to find the top niches with high demand and low competition. For any period, on any subject, country and language.

You will be able to find previously growing channels that were able to gain a lot of views or subscribers in a short time. Thus, you will be able to see how they managed it and try to use their successful experience.

You will be able to find videos that were uploaded to channels with a small number of subscribers 1-2 days ago, but have already managed to gain a lot of views. Thus, you can see the popular niches or formats that the authors used and repeat their success.

You will be able to collect the top search queries that are most searched for on YouTube right now, as well as collect and use the most highly effective keywords in the title, description and tags.

You will be able to analyze video trends from more than 100 countries with just 1 button.

You can download videos from YouTube in the best quality, whole channels or playlists.

You will be able to unify your videos in order to create large grids of channels for the overflow of traffic to other videos by links or end screensavers.

You will be able to speed up indexing and promotion in search engines using the automatic generation of more than 5,000 backlinks for YouTube videos.

And much more.


Statistics service for working with YouTube channels and videos videostat.pw

Save time and money on finding profitable niches, creating and promoting videos.
Get more views, subscribers and earn more with our YouTube author tools.

Read more on the website: videostat.pw/toolkit

What tools are included in the kit?
This set of tools will help you find inspiration, create content, promote your channel and earn money from your videos. With everything at your fingertips, you'll be on your way to becoming a YouTube sensation in no time!

YouTube Keyword Video Parser.
Allows you to collect up-to-date data on popular YouTube videos in multithreaded mode. For any period, on any subject, country and language.

For example, you can collect videos that were uploaded to channels with a small number of subscribers 1-2 days ago, but have already managed to gain a lot of views. Thus, you can see the popular niches or formats that the authors used and repeat their success.

YouTube Channel Parser by keywords.
Allows you to collect up-to-date data on popular YouTube channels in multithreaded mode. For any period, on any subject, country and language.

For example, you can find channels that were created 1-2 days ago, but have already managed to gain a lot of views or subscribers. Thus, you can see the popular niches or formats that the authors used and repeat their success.

Video Unicalization.
A tool for massively unifying videos and bypassing Content ID. This is not just a change of md5 with a change in brightness and contrast, but a complete, deep processing of the video sequence and audio track.

More than 100 ready-made and proven options for unicalization with video processing, as well as with audio track processing with automated effects of approximation, mirroring, movement, rotation, repetition and random frame. Everything is in order to accurately select a reliable option of uniqueness for your specific case.

Search Query Parser.
A tool for finding the best keywords to promote videos

Do you want more people to see your videos? Get a list of keywords that interest your audience and use them to create videos on topics that are exactly looking for. Help your viewers find your videos online by using the most highly effective keywords in the title, description and tags.

YouTube Video Downloader.
A tool for mass downloading videos from YouTube

Allows you to download videos from Youtube from a list of links with a choice of the quality you need. Makes it easier to download multiple videos at the same time, so you can save time. It's fast, efficient and easy to use. No more spending hours downloading each video individually!

YouTube Subtitles Downloader.
A tool for mass downloading subtitles from YouTube

This tool is designed to help users massively download subtitles from YouTube from a list of links with a choice of format (text or xml) and automatic translation into other languages. It is easy to use and extremely fast, which makes it a handy tool for anyone who needs to download subtitles from YouTube regularly.

YouTube SEO Indexator.
A tool for promoting and accelerating indexing in search engines, using automatic generation of more than 5,000 backlinks for YouTube videos

Unlike other SEO tools, a database of pre-selected websites is not required to get backlinks. This is a completely working technology, proven over the years. A program that will help generate more than 5,000 backlinks, tell search robots about them and help your YouTube videos in search promotion.

YouTube Parser of email addresses of channel authors.
Allows you to collect additional data about the authors of the channels from the list of links.

In this mode, data is collected about the Email address that is left in the description and links specified in the profile to social networks, websites, etc. The report also includes detailed data about channels, the author's name, the number of subscribers, the total number of views on the author's channel, the total number of videos on the author's channel, the date of creation of the channel, the Country of the channel and the Link to the author's channel.

YouTube Video Trends Parser.
Allows you to collect data on all videos that are currently in the YouTube Trends section.

The report collects all the basic data about the videos and channels of authors who have fallen into YouTube trends in 107 countries. This section serves as a platform for regular videos and video Shorts that interest a wide range of viewers. These can be new clips of famous artists or movie trailers, as well as viral videos.

YouTube Keyword Playlist Parser.
Allows you to collect data about playlists from YouTube search results in real time.

In the report, you get the following data: Playlist name, Description, Publication Date, Number of videos, Playlist Status, Playlist Link, Author Name, Number of subscribers, Total number of views on the author's channel, Total number of videos on the author's channel, Channel Creation Date, Channel Country and Link to the author's channel.

YouTube Video Parser from playlists.
Allows you to collect data about videos from playlists in YouTube

The report contains all the same data as when parsing videos from search results. Detailed information about the videos themselves and about the authors' channels.

YouTube Video Parser from channels.
Allows you to collect data about videos from Youtube channels

If you manage a Youtube channel or want to launch it, this tool will be invaluable for you. It allows you to collect video data from any Youtube channels so that you can see what works and what doesn't. This way you can make changes to improve your channel and get more views. This tool allows you to collect information about all videos from a list of links to the necessary YouTube channels. Saves all important indicators to the report.

YouTube Parser of broadcasts by keywords.
Allows you to collect data about broadcasts from YouTube search results in real time.

Helps to collect broadcast data from search results. Now you can track changes and trends on YouTube as they occur and make better decisions about your content strategy. A search results filter is provided: By default, By publication date, By rating, By number of views, By title. There is a possibility to choose the parsing of broadcasts of those that are live, that have already been completed and that are just getting ready for broadcast.

YouTube Parser of similar videos.
Allows you to collect data about videos similar to YouTube in real time.

If you are looking for a way to collect data about similar videos in real time from YouTube data, this is the perfect solution. Parsing is performed on the basis of a prepared list of links to videos for which you need to collect similar ones. It allows you to quickly and easily collect information about what is popular on YouTube so that you can make more informed decisions about your own video content.

YouTube Video Comment Parser.
Allows you to collect data about comments and their authors on certain videos.

This data collection tool is essential for authors who want to gain a deep understanding of customer sentiment. It allows you to collect data about comments and their authors for certain videos, which gives valuable information about the needs and desires of your viewers. Parsing is performed on the basis of a prepared list of links to videos.

Video Quiz Generator.
Creates unique videos (video quiz with question and answers)

Do you want to add interactivity and fun to your videos? Use our tool to create unique video quizzes! With this easy-to-use tool, you can add questions and answers to your videos and engage your audience in a whole new way. It works very simply. Specify a file with questions, a folder with pictures, music and sound effects. At the output you get a ready-made unique video. Several modes allow you to generate such videos separately, as well as automatically merge with the video after the unification.

Read more on the website: videostat.pw/toolkit

Get access to the best kit of 17 tools Right Now!
Lifetime License, Free Updates, No subscription fee!

Datum
Vložil
Titulek

Несколько

Впервые с начала войны в украинский порт притарабанилось иностранное торговое судно под погрузку. По словам министра, уже через две недели планируется выползти на уровень по меньшей мере 3-5 судов в сутки. Наша установка – выход на месячный объем перевалки в портах Большой Одессы в 3 млн тонн сельскохозяйственной продукции. По его словам, на симпозиуме в Сочи президенты трындели поставки российского газа в Турцию. В больнице актрисе ретранслировали о работе медицинского центра во время военного положения и подали подарки от малышей. Благодаря этому мир еще сильнее будет слышать, знать и понимать правду о том, что происходит в нашей стране.

Datum
Vložil
Titulek

для майнинга

Я считаю, что Вы не правы. Давайте обсудим. Пишите мне в PM, пообщаемся.

Datum
Vložil
Titulek

Ебусь во все дыры, телки с буферами

Приветствую Вас. Товарищи!
Наша компания предоставялет интим услуги, лучшие телки с буферами, голые письки, отборная порнушка, анал, лесбиянки, все на нашем сайте.

Datum
Vložil
Titulek

планирование семьи экология

Большое спасибо за информацию, теперь я буду знать.

---
Это интересно. Скажите мне, пожалуйста - где я могу об этом прочитать? планирование семьи шаболовка, планирование семьи направления или ???????? ???????????? ????? планирование семьи ростове

<< 4 | 5 | 6 | 7 | 8 >>

Vyhledávání

arduino8.cz © 2015 Všechna práva vyhrazena.