Advanced Arduino Code Optimisation with Pin Registers

  Рет қаралды 16,745

Mario's Ideas

Mario's Ideas

Күн бұрын

Пікірлер: 39
@johneagle4384
@johneagle4384 2 жыл бұрын
Without videos like yours, my projects would be dead in the water. Thank you for the excellent explanation.
@MathinThorawemu
@MathinThorawemu 11 ай бұрын
❤ From SRI LANKA 🇱🇰❤ I've learnt lot from your channel.. and I think you deserve much much more subscribers, likes and comments
@bobvanwagner6099
@bobvanwagner6099 9 ай бұрын
Well done video presentaton. Thoughtfully done, nice pace.
@johnh10000
@johnh10000 2 жыл бұрын
Thanks, someone has built a circuit with an Atmga8 on it, so I THOUGHT I knew about them. One of the switches on their board goes to pin PC3.. so there I am DRDC &=PC3 your tutorial made me look at PC3 which turns into a 3 hmm thankfully only 3 leds and three switches!!
@jozefsoucik3115
@jozefsoucik3115 9 ай бұрын
great vid. i always need deep understanding to understand the thing. this made me moved forward... Also i learned today, that you can achieve much memory saving by use for delay(1000) function thic code instead: for (long i = 0; i
@mrtom64
@mrtom64 2 жыл бұрын
Nice explanation. Setting PIND also functions as a toggle...eg: PIND = B00010000 will toggle pin 4 each time the code is executed.
@marios_ideas
@marios_ideas 2 жыл бұрын
I did not know that:( I would have included it in my video
@mrtom64
@mrtom64 2 жыл бұрын
@@marios_ideas No worries, it seems wrong to 'set' a read only register but it works and is very useful.....and extremely quick. Apparently turning pins on and off is a 'thing' and the challenge is, of course, to do it the fastest.....you'll find lots of weird and wonderful 'port manipulation' code on the subject.
@fsmaia
@fsmaia 2 жыл бұрын
Very good! Congrats.
@marios_ideas
@marios_ideas 2 жыл бұрын
Thanks. Don't forget to give video a like. Helps with growing the channel
@Lunolux
@Lunolux 4 ай бұрын
that was interesting, nice video thx
@raymondmichael4987
@raymondmichael4987 Жыл бұрын
Fascinating 😊❤
@alielectronics17
@alielectronics17 2 жыл бұрын
nice video & nice explanation
@marios_ideas
@marios_ideas 2 жыл бұрын
Thx:) Give the video thumb up. Helps to promote my channel
@thaboluvhimbi4208
@thaboluvhimbi4208 11 ай бұрын
Informative
@IvanEng747
@IvanEng747 2 жыл бұрын
This example maybe apply in esp12F?
@adambeedle
@adambeedle 2 жыл бұрын
Great video 👍
@marios_ideas
@marios_ideas 2 жыл бұрын
Thx:) give vide a thumb up if you liked it
@shubham9672
@shubham9672 2 жыл бұрын
Is it good or bad 14:40 That pulse
@shubham9672
@shubham9672 2 жыл бұрын
Please make next video on How to create fastest function Replacement for Digital read Digitalwrite Analog write Analog read Delay function
@Gaminiheraliyawala
@Gaminiheraliyawala 5 ай бұрын
This is fantastic... 👍👍👍 But, what is the IDE? Is it Arduino IDE? Appreciate your reply.... 🙏🏻🙏🏻🙏🏻
@marios_ideas
@marios_ideas 5 ай бұрын
It is Arduino IDE
@alcanceweb
@alcanceweb Жыл бұрын
Great tutorial, thanks. I'm also interested in your small led modules. Could you please provide me link to buy them?
@marios_ideas
@marios_ideas Жыл бұрын
AliExpress . Search for lillypad leds. They are generally for electronics to be attached to clothing. But i thought they work great in breadboard projects
@alcanceweb
@alcanceweb Жыл бұрын
Outstanding. Thank you, sir.
@marios_ideas
@marios_ideas Жыл бұрын
No problem. Consider supporting my channal
@Sekhar_Home
@Sekhar_Home 2 жыл бұрын
Pls make more advance video on port manipulation and writing of complex arduino codes
@marios_ideas
@marios_ideas 2 жыл бұрын
Any particular aspects you are interested in?
@Sekhar_Home
@Sekhar_Home 2 жыл бұрын
@@marios_ideas sctually i need all.. but at first need ADC and timer programming.
@shubham9672
@shubham9672 2 жыл бұрын
Can we use digital pin D0 and D1 as output and drive LED
@marios_ideas
@marios_ideas 2 жыл бұрын
Yes
@shubham9672
@shubham9672 2 жыл бұрын
@@marios_ideas But if we attached LED to those pin then is there any problems with Rx TX communication
@marios_ideas
@marios_ideas 2 жыл бұрын
You cannot do both. I always thought D0 and D1 are off limits and reserved for RX TX. But with pin registers I was able to use them to control LEDs
@shubham9672
@shubham9672 2 жыл бұрын
@@marios_ideasfor example I built a blutooth controlled robot If I detected any obstacles can I drive D0 and D1 pin to logic low
@shubham9672
@shubham9672 2 жыл бұрын
If I do so .... Is blutooth connection disconnected
@snouzz-gaming
@snouzz-gaming Жыл бұрын
Hi great Video! Do you can explain how to write a code with register for nrf24l01 (Receiver & Transmitter) ?
@marios_ideas
@marios_ideas Жыл бұрын
My pleasure:) like and subscribe to my channal. Also consider supporting it.
@no5x937
@no5x937 8 ай бұрын
There is NO IF statement in the first code shown. Register D has 8 bits (NOT 7). Otherwise, great video.
@marios_ideas
@marios_ideas 8 ай бұрын
Point me to the exact timestamps in the video so I can inform about those mistakes in the description
How to select colors for your Arduino led projects. RGB vs HSV
16:14
Mario's Ideas
Рет қаралды 4,5 М.
Port Register Control | Increase speed of Read/Write - Arduino101
15:22
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 20 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 18 МЛН
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 1,2 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 7 МЛН
Level Up Your Arduino Code: Registers
21:09
SparkFun Electronics
Рет қаралды 186 М.
Optimizing Arduino Code: no setup(), no loop() ⛔
9:27
Wokwi
Рет қаралды 210 М.
EEPROM Memory - Store Anything - Arduino101
13:16
Electronoobs
Рет қаралды 110 М.
#228 ESP32 Over the Air (OTA) Updates with ONE LINE are EASY!
23:26
Ralph S Bacon
Рет қаралды 29 М.
How to use millis() function to multitask in arduino code.
10:34
Mario's Ideas
Рет қаралды 62 М.
How to get source code onto a PIC microcontroller
11:21
FriendlyWire
Рет қаралды 96 М.
Arduino DDR and PORT register to control multiple digital outputs!
7:40
How to Organize Code
14:37
Programming Electronics Academy
Рет қаралды 64 М.
Pin Change Interruptions ISR | PCINT | Arduino101
14:19
Electronoobs
Рет қаралды 59 М.
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 20 МЛН