Arduino ShiftOut() - Friday Minis 206

  Рет қаралды 7,433

0612 TV w/ NERDfirst

0612 TV w/ NERDfirst

Күн бұрын

On Wednesday, we looked at the 74HC595N Shift Register, writing our own code to transfer data to it. I briefly alluded to the shiftOut function which can be used to make things simpler. In this episode of Friday Minis, we take a closer look at the shiftOut function and see just what makes it so interesting!
= CREDITS =
My appreciation extends to the creators of the following external assets that made this video possible:
Blown Away by Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 3.0
creativecommons...
ISRC: USUAN1200100
= 0612 TV =
0612 TV, a sub-project of NERDfirst.net, is an educational KZbin channel. Started in 2008, we have now covered a wide range of topics, from areas such as Programming, Algorithms and Computing Theories, Computer Graphics, Photography, and Specialized Guides for using software such as FFMPEG, Deshaker, GIMP and more!
Enjoy your stay, and don't hesitate to drop me a comment or a personal message to my inbox =) If you like my work, don't forget to subscribe!
Like what you see? Buy me a coffee → www.nerdfirst.n...
0612 TV Official Writeup: nerdfirst.net/0...
More about me: about.me/lcc0612
Official Twitter: / 0612tv
= NERDfirst =
NERDfirst is a project allowing me to go above and beyond KZbin videos into areas like app and game development. It will also contain the official 0612 TV blog and other resources.
Watch this space, and keep your eyes peeled on this channel for more updates! nerdfirst.net/
-----
Disclaimer: Please note that any information is provided on this channel in good faith, but I cannot guarantee 100% accuracy / correctness on all content. Contributors to this channel are not to be held responsible for any possible outcomes from your use of the information.

Пікірлер: 20
@HiddenG14
@HiddenG14 7 жыл бұрын
I like this.
@theunime9836
@theunime9836 6 жыл бұрын
what actually happens in a bitset() or bitWrite() function...plzz explain
@NERDfirst
@NERDfirst 6 жыл бұрын
Hello and thank you for your comment! The bitSet() and bitWrite() functions are *bit manipulation* functions. On a computer, numbers are represented by a string of bits, and these two functions are used to manipulate individual bits. bitSet(x,n) means to set the nth bit of the integer x to 1. bitWrite(x,n,b) means to set the nth bit of integer x to b. For a crash course on this subject, check out this video of mine → kzbin.info/www/bejne/aoLPpGash6aSfJY If you prefer to take your time and go in-depth, I have a playlist of 4 videos going through this → kzbin.info/aero/PLJse9iV6ReqgcI4tec2jcyOZkaUKuGoHN
@theunime9836
@theunime9836 6 жыл бұрын
0612 TV w/ NERDfirst thanku... That was indeed a help... Great job...
@NERDfirst
@NERDfirst 6 жыл бұрын
You're welcome! Happy to be of help =)
@sauravti
@sauravti 3 жыл бұрын
OooooooooooooooooooooooooAwesomeeeeeee!!!!!!!
@NERDfirst
@NERDfirst 3 жыл бұрын
Hello and thank you for your comment! Glad you liked the video =)
@colinjava8447
@colinjava8447 6 жыл бұрын
Thanks for video, I'm new to arduino but I understand binary to a high level. I have the 8 bit shift register, and 8 leds, and I'm using the code: for(int n=0;n
@NERDfirst
@NERDfirst 6 жыл бұрын
Hello and thank you for your comment! No, it doesn't use shift operations. The role of this function is to connect to something like a shift register, to serially "push" 8 bits of information out over one data line. It "signals" a new "push" by pulsing a clock line.
@colinjava8447
@colinjava8447 6 жыл бұрын
@@NERDfirst ok why is it called a shift register, I would think it has something to do with binary shifting
@NERDfirst
@NERDfirst 6 жыл бұрын
It is called that because information is "shifted" bit by bit into the internal storage of the shift register. You are essentially shifting 8 bits of information over one data line by doing it over a period of time instead of all at once.
@erdenekhuujargal2939
@erdenekhuujargal2939 5 жыл бұрын
hello can you leave the link. how did you build shifout function?
@NERDfirst
@NERDfirst 5 жыл бұрын
Hello and thank you for your comment! I did not build the shiftout function, it's already available within the Arduino IDE!
@daisym6503
@daisym6503 6 жыл бұрын
Sir, I'm currently using 24 LEDs and 3 shift registers. When I enter the value 1 to the data argument for the ShiftOut function, the first LED connected to each shift register lights up. Then, when I give the value 255, all 24 LEDs gets lit. Is it normal behaviour ? Would you please tell me how to only lit up 1 LED from a single shift register ? Thank you
@NERDfirst
@NERDfirst 6 жыл бұрын
Hello and thank you for your comment! It sounds like your three registers are sharing the same data pin as well. What happens then is that each register is operating separately from each other but are reacting to the same set of instructions. Right now, in your setup each chip probably has one pin unused. That pin serves to "forward" the last bit from one register to the next (refer to the datasheet for more). What you want to do is to link that pin to the data pin of the "next" register.
@daisym6503
@daisym6503 6 жыл бұрын
Hi, There is no unused pin except 9th pin of the last shift register. When I use someone's code(without shiftout function) it works perfectly. My code: shiftOut(11,12,MSBFIRST,B00000001); Thank you.
@NERDfirst
@NERDfirst 6 жыл бұрын
Then I'm afraid I don't really have enough information to advise further. Everything sounds correct. Perhaps review where you're calling your function and what values you're passing in.
@daisym6503
@daisym6503 6 жыл бұрын
Thank you sir. I will try.
@distortedfocus7698
@distortedfocus7698 6 жыл бұрын
Thank you for explaining absolutely nothing
@NERDfirst
@NERDfirst 6 жыл бұрын
Hello and thank you very much for your comment! I'm sorry you've had a bad experience. What, in your opinion, was missing from this episode? How could it be improved?
74HC595 & 74HC165 Shift Registers with Arduino
40:38
DroneBot Workshop
Рет қаралды 401 М.
Integrated Circuits (w/ Shift Register demo!)
16:25
0612 TV w/ NERDfirst
Рет қаралды 4,7 М.
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 267 МЛН
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Worst flight ever
00:55
Adam W
Рет қаралды 33 МЛН
I Made A Water Computer And It Actually Works
16:30
Steve Mould
Рет қаралды 7 МЛН
Reflection Maps: Quick and efficient real-time reflections!
11:44
0612 TV w/ NERDfirst
Рет қаралды 3,3 М.
Pull Up/Down Resistors
6:42
0612 TV w/ NERDfirst
Рет қаралды 8 М.
Controlling a BIG LED Matrix?! How Shift Registers work! || EB#39
12:33
Using Shift Registers to Get UNLIMITED GPIOs for our project !!
12:40
Timer Interrupt ISR + Examples | Arduino101 | Set Registers & Modes
16:13
HOW TRANSISTORS REMEMBER DATA
16:58
Core Dumped
Рет қаралды 310 М.
Coding Challenge 166: ASCII Text Images
22:42
The Coding Train
Рет қаралды 1,1 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 267 МЛН