Notifications
Clear all

Copying Arduino Code from a video

12 Posts
5 Users
4 Likes
974 Views
Squeaky
(@squeaky)
Member
Joined: 5 years ago
Posts: 40
Topic starter  

Hi Everybody,

When watching a Video one often sees examples of Arduino Code

How does one copy this code to try it out for one selves

Squeaky from England


   
Quote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6662
 

If it's a DBWS video, the blog will have the code. Click the More link in the video usually will show you a link.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Squeaky
(@squeaky)
Member
Joined: 5 years ago
Posts: 40
Topic starter  

Thanks Ron

Not sure what a DBWS video is.... I have managed, after quite a struggle, to copy the code from some videos....

What I did wonder is is there some software that assists this process?

Squeaky


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6662
 

@squeaky This is DBWS, Drone Bot Work Shop.

Some software that assists, NO, just click MORE on the YT vid, then click the BLOG link and you can then see and copy the code. If it is NOT a DBWS video it can be anything, there is no standard way. Some other videos may point you to github or source forge or whatever, again, click MORE to see if anything pops up. If not, then they did not intend for you to copy their code.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Squeaky
(@squeaky)
Member
Joined: 5 years ago
Posts: 40
Topic starter  

Thanks once again Ron.....

I, probably like you, work on my own.... its nice to know like minded folk will spend a little time assisting others.

I had come to very similar conclusion..... after too much time just ferreting around.

Squeaky  


   
Ron reacted
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1018
 

@zander

DBWS is the acronym for DroneBot Workshop.  Every video that Bill produces includes an article about the video.  You can find it in the description of the YouTube video below the video itself.  You might have to click on the "SHOW MORE" link.  And in the article is the code he uses in the video.  It is easy to copy it to your clipboard and then paste it into your IDE.

Good Luck!

SteveG


   
ReplyQuote
Squeaky
(@squeaky)
Member
Joined: 5 years ago
Posts: 40
Topic starter  

Thanks Codecage,

Yes, I have followed a few of Bill's videos and discovered the various chunks of Arduino code.

However, not everybody is as organized as he is and I just wondered if I was missing some sort of magic to enable me to harvest code from any video.

Thanks again

Squeaky


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1018
 

@squeaky 

Oh, now I see the real point of your question!

I have never come across a way to scrape text from a video, and doubt it is possible, but having now made that statement I'm sure I'll be bombarded with "oh yes it can" comments. 🤣 

If I wanted what was on the screen bad enough, I've always just had to pause the video and type into my editor what I could then see.  Time consuming yes, but usually I was thinking about what the code was doing and learning a little at the same.  Plus it may have in some small way helped me improve my typing skills.  NOT A CHANCE OF THAT!  At 76 my muscle memory is stuck in hunt and peck mode!! 😆 

SteveG


   
Dooper1961 and Inst-Tech reacted
ReplyQuote
robotBuilder
(@robotbuilder)
Member
Joined: 5 years ago
Posts: 2037
 

@codecage

I have paused the utube video and typed the code myself as the lecturer scrolls back and forth through the code often changing it as they evolve the program. As a touch typist I can type very fast and used to decode and type Morse code messages as they arrived. However I take forever using two thumbs to type text into the iphone!!

 


   
ReplyQuote
Squeaky
(@squeaky)
Member
Joined: 5 years ago
Posts: 40
Topic starter  

Hi robotBuilder

Wow .... Decode and type Morse Code

I had a friend who worked at Bletchley Park during the second world war.... she could talk in Morse.

I had known her for years before she was allowed to tell people what she did during the war.... Official Secrets etc., etc.

Once again thanks to all for your kind assistance

Squeaky


   
ReplyQuote
 Biny
(@binaryrhyme)
Member
Joined: 2 years ago
Posts: 269
 

Most vids only have a couple of key bits of code, the rest being plumbing, etc. I can usually retype the key bits from a screen pause on a second monitor, or take a screen shot and dump it into one-note for reference later. One-note can actually convert text in images into text... not so great at code though but might help.

I edit my posts to fix typos, correct grammar, or improve clarity. On-screen keyboards are evil.


   
ReplyQuote
Squeaky
(@squeaky)
Member
Joined: 5 years ago
Posts: 40
Topic starter  

Thanks Binni

All ideas are noted .... nice to hear from you

Squeaky


   
ReplyQuote