Raspberry Pi - Using Arduino - Episode 1 - An introduction...

Поделиться
HTML-код
  • Опубликовано: 7 авг 2024
  • In this tutorial we will be looking at the Arduino and how to use it with the Raspberry Pi... I will show you how to install all the necessary software in order to program the Arduino, I will tell you all you need to know about Arduino and where you should get one etc. By the end of this episode you will be able to understand an entire C++ Arduino program that makes a LED flash on and off. I hope you enjoy this tutorial and also hope that you will subscribe, like and watch my other videos: ruclips.net/user/TheRaspbe...
    CODE AND INFO:
    My Arduino is the: Arduino Mega 2560 which I purchased from eBay for £17. I would recommend getting the UNO as this is the Arduino flagship model...
    Here is the forum post with all the commands: www.raspberrypi.org/phpBB3/vie...
    Please email me and comment on my videos if you have any problems or would like some support with your Raspberry Pi project: theraspberrypiguy@gmail.com
    The Raspberry Pi Guy
    WHAT ARE YOU DOIN'? Why haven't you subscribed yet?
  • НаукаНаука

Комментарии • 175

  • @SirThorfinn
    @SirThorfinn 11 лет назад

    Finally someone who actually can tell me how to do this! I've been trying to get arduino on my RPi for ever now, haha. Thanks!

  • @davidnewberry6800
    @davidnewberry6800 11 лет назад

    Liked what you had to show. Love to see nore on anything.
    Thanks for using your time to show others.

  • @kierancranley
    @kierancranley 11 лет назад

    Good tutorial - please continue this trend. I started looking at the Arduino IDE on the RasPi when I got my Gertboard. However, when I realised that I needed to use the COM window (you can't do this with the RasPi), I switched to the Arduino, so the RasPi is temporarily out of fashion! I am now into the wonderful world of Arduino with all kinds of devices, but I will return to the RasPi when I develop some further skills. Please keep up the RasPi/Arduino tutorials. Thanks.

  • @AcidHawk9
    @AcidHawk9 11 лет назад

    I too would like more videos on this subject. Thank you for your effort. Your teaching manner is very easy to follow, well done.

  • @Totogita
    @Totogita 9 лет назад +1

    I installed the arduino software on my Ubuntu laptop . I am going to try thi since my son is working on a project similar to this one. This is very interresting. I hope you find the time to do more. I already worked with he raspberry pi I made a small internet radio with lcd dispaly. Thanks for posting this project.
    Dart

  • @jobloggs6267
    @jobloggs6267 10 лет назад

    Many thanks for this, a good starting point for learning the arduino. Anything extra would be great.

  • @ilovetheDough7
    @ilovetheDough7 8 лет назад

    Thanks Man I love your tutorials :) keep up the fine work !! :)

  • @paulfsemicolen01
    @paulfsemicolen01 11 лет назад

    Hello Raspberry Pi Guy! I'm looking at investing into a small computer system for a little project I'm working on in my bedroom. I have built a soffit in the ceiling and have a mural of the sky both day and night via incandescent paint/black lights. What I want to do is mimic the sunrise/sunset in relative time with about 10 meters of analog LED strip. So far I have 3, 5 meter LED RGB strips, and a LCD AC power supply DC 12v/6amp. This video has been very informative Thanks again!

  • @sudokphrar
    @sudokphrar 11 лет назад

    Very helpful, my father and I had a watch! Keep it up, we'ld love to see more!

  • @sampathxyz
    @sampathxyz 9 лет назад +23

    we know that arduino is a micro controller (better at controlling hardware) & the pi is a micro processor (better at computing data) .
    What I wanna know is how to combine them both for making a better project

    • @shoaib_zubair
      @shoaib_zubair 6 лет назад +2

      Have u find so? If yes, then please tell me i also wants to learn.

    • @poisonouswhisper
      @poisonouswhisper 5 лет назад +2

      @@shoaib_zubair ruclips.net/video/KmjLOhDrqWg/видео.html

    • @openlink9958
      @openlink9958 5 лет назад +2

      @@poisonouswhisper You are a very nice person and I hope you have a good day thanks!!!

  • @leonstankowski
    @leonstankowski 11 лет назад +1

    Thanks for the intro!
    Would love to see one on interfacing the Raspberry Pi to an Arduino such that the Arduino serves as additional I/O.

  • @jc2782
    @jc2782 11 лет назад

    Yeah i have a summer internship that uses the arduino and I'm very interested in learning more great video . :)

  • @TheJavacowboy
    @TheJavacowboy 11 лет назад

    I am certainly interested in more videos on interfacing the Arduino with the Pi. Nice video thanks.

  • @stokedsurferdude
    @stokedsurferdude 8 лет назад +1

    Great video thanks, any chance of more on getting the Arduino to communicate with the pi?

  • @memamu0
    @memamu0 11 лет назад

    So my question was: Which port is selected under Tools>Serial Port and do I have to install something special for it.
    So thank you that you answered it. It makes the whole Arduino development easier when they install everything you need. I like those guys. :D

  • @chronotrope
    @chronotrope 11 лет назад

    Very informative! I'm in the early stages of learning about the Arduino board. Looking forward to seeing more content about combining the RPi with Arduino. One future project I'd be intersected in, would use the Arduino to capture weather data and then use the RPi to display it via its web server.

  • @Bark777
    @Bark777 8 лет назад

    I got an UNO on eBay for 3 bucks. Just branded UNO, and of course it is not the real deal Arduino, but I was amazed by the quality. For 3 bucks I had no real expectations.

  • @liamgoodman6954
    @liamgoodman6954 10 лет назад

    Thanks again for another excellent video! Really helped me out, keep up the great work! Cheers

  • @JoeEvansSound
    @JoeEvansSound 10 лет назад +2

    Hi, If you are looking for ideas I have a project on at the moment and am wondering how to go about it. I am looking to control a arduino (mega) from a raspberry pi. I have a shed load of realys I need to control (about 10) and I also have the need to take signals from some analogue inputs (about 5). Thanx vm.

  • @Swampwild1
    @Swampwild1 4 года назад

    Very good thanks. Can you demonstrate a project using Library with this hardware?

  • @legerstee1
    @legerstee1 11 лет назад

    Very nice! I will buy and try a arduino in the future, thanks!

  • @captiveimage
    @captiveimage 11 лет назад

    Spooky as it may seem I spent the entire weekend getting to grips with this. With the help of a number of different sites dotted around the place, I've now been able to master the writing to, and reading from the Arduino board with the Pi over the USB using a very sexy Arduino sketch and Python.
    The Arduino boards are incredibly powerful, but combined with a proper O/S - Linux - I can see some amazing potential.
    Next stop for me is programming a GUI to control the Arduino features. :o)

  • @gotbletu
    @gotbletu 11 лет назад

    interesting, can u brick ur arduino if u upload the wrong script? also whats the advantages of the different boards? Thanks =D

  • @cmdstraker
    @cmdstraker 10 лет назад

    NanobeFLY There are camera shields for the mega, but as far as I know nothing on the HDMI level. You could however, use a regular usb camera and a wireless HDMI repeater to do something like that on the PI

  • @Streetzlegend
    @Streetzlegend 11 лет назад

    Great video, say I wanted to connect my Arduino Uno to relays, would I be able to wire the pins directly into the relay board, for example a SainSmart 8-Channel 5V Relay Module, without having to add resistors or transistors? Looks like the pin's withstand about 40mA

  • @Future2TheStars
    @Future2TheStars 11 лет назад

    This is a nice video. I am working on a less powerful relative of Arduino, the Parallax Basic Stamp2. I hope I can make it work with my pi in a similar fashion

  • @hh3130
    @hh3130 11 лет назад

    Great tutorial, I would like to see more Arduino and Raspberry pi projects and how they can be used together. I currently have an Arduino Uno and should receive my Raspberry Pi today. Interested to use as a LAN accessible control system solution for my home and garage.

  • @withheld1541
    @withheld1541 10 лет назад

    Nice foundation. Thanks. Have you done any tutorials on using either device to run thermostats, alarm systems, fish pumps etc?

  • @n0sr3t3p
    @n0sr3t3p 11 лет назад

    Thanks for the vid! I'm new to Raspberry Pi and want to buy the right sd card for my needs. I've being seeing 4gb suggested mostly. Any particular reason for 16gb sd card?

  • @Daemonforce-Gaming
    @Daemonforce-Gaming 9 лет назад

    Absolutely awsum video as new to electronics and Arduino and pi's didnt know you could program an Arduino with raspberry pi, hhmmm mini raspberry pi programmer with screen comes to mind.
    Is there a way on the raspberry pi to show pdf files and videos as have alot on external hd for learning electronics
    I will be getting an arduino and raspberry pi soon so very interested
    Thanks in advance guys

  • @xardas1500
    @xardas1500 10 лет назад

    Good video...carry on like that and i enjoyed the adruino film

  • @Arduino4Me_and_Pi
    @Arduino4Me_and_Pi 9 лет назад +1

    Cool, thanks for the video!

  • @captiveimage
    @captiveimage 11 лет назад

    Excellent. Please do continue! Ideas? We've got the basics of getting the Pi to talk to the Arduino with your very clear and easy to follow tutorial. How about getting communication to run in the opposite direction? How about a sensor on the Arduino (temp) displaying an output on the Pi?
    Will be looking out for more of your tutorials.

  • @JamesBalazs
    @JamesBalazs 11 лет назад

    Have you done an arduino tutorial on the ir remote? Like having the remote trigger an led?

  • @davidryan2083
    @davidryan2083 11 лет назад

    Thanks Matt.
    Looking forward to that one.

  • @jeroenhdv
    @jeroenhdv 11 лет назад

    Is there a way to "capture" the analog data that I get from lets say a moisture sensor that is connected to my Arduino, on my Pi?

  • @zongyiliu7
    @zongyiliu7 10 лет назад

    Thanks for your excellent toturial video, RasberryPiGuy. I have a question that, you have done this video for one year and you choose mega2560 to cooperate with RPI. Now, I want to buy a Ardunio with my RPI to do some projects. So, what's your suggestion? YUN or TRE or others...? Thanks a lot~!

  • @yxhankun
    @yxhankun 5 лет назад

    Would u please tell me which version of raspi and os running?

  • @memamu0
    @memamu0 11 лет назад

    I am talking about the serial port. On windows they are called COM ports, in unix OS one of them is /dev/ttyS0. The Arduino software pushes the sketches to the Arduino via a serial port. The Arduino can also talk back and forth with a serial console over this connection. This serial connection is kind of emulated by the Arduino boards via the USB connection and ends in a serial port on the system side. You can can connect multiple Arduinos via USB and can change the port under Tools>Serial Port.

  • @vince086
    @vince086 11 лет назад

    Not that I know off, you might have to hold the reset button before uploading but otherwise I've never had trouble uploading code.
    The advantages vary from board to board.
    The mega has loads of inputs for big projects.
    The small (mini) ones are great if space is limited.
    Some other boards run on 3.3V.
    Others have stuff like bluetooth and SD card readers built in.
    But the standard arduino is great
    I personally like the seeeduino, it is an arduino but with one or two improvements.

  • @walterhynson2898
    @walterhynson2898 8 лет назад +1

    fantastic tutorial, yes arduino and rasb pi are a great match,why dont they make a board with both combined ,keep on with the rasb pi and arduino combo tutorials.

    • @uktoker71
      @uktoker71 6 лет назад

      There is an addon for the Raspberry PI called Gertboard that has an ATmega micro controller onboard.

  • @mericappsv1.239
    @mericappsv1.239 10 лет назад

    this is great, good to know c++

  • @davidryan2083
    @davidryan2083 11 лет назад

    Nice tutorial Matt. I've been thinking about getting myself an Arduino.
    Do you have any of the radio modules from Ciseco? If so I'd like to see some tutorials on those.
    Or how about a tutorial on sensors.

  • @davidryan2083
    @davidryan2083 11 лет назад

    Kieran, when you say com window do you mean the com port and if so you can use this on the RasPi.
    What problems are you having?

  • @BrewOnABike
    @BrewOnABike 11 лет назад

    Continue the series good sir!!!

  • @cdlq456
    @cdlq456 11 лет назад

    I would love to see more of this videos

  • @johnnygeejr500
    @johnnygeejr500 8 лет назад +1

    Well done , thank you

  • @gotbletu
    @gotbletu 11 лет назад

    Thanks for the clear up

  • @StoneBoneAndFire
    @StoneBoneAndFire 11 лет назад

    Hi, I just wondering what's the difference between the UNO and leonardo arduino? I'm about to buy my first arduino but not sure about, is the leonardo an updated UNO? Enjoy your videos btw, subscribed :)

  • @siqueirarenan
    @siqueirarenan 11 лет назад

    Hi, great video.. but i still have a doubt about Raspberry and Arduino comparison that i cant find anywhere.. Im using arduino for a simple closed loop control witch i need high frequency to sample and process. With arduino im getting about 5kHz. I would like to know if i Raspberry would surely give me higher frequencies since its clock is 700MHz or not, because of the OS.. In short words: is Raspberry faster than arduino for the same application?

  • @Kalaakaar-in
    @Kalaakaar-in 11 лет назад

    Yes please continue.

  • @SusanAmberBruce
    @SusanAmberBruce 6 лет назад

    I have bought a raspberry pi3 B+ and an Arduino UNO r3 and an AD9933 waveform generator. how do I link them all together?

  • @calebbullock
    @calebbullock 10 лет назад +1

    Hi, can you do a tutorial on how to control multiple network connected arduino boards from an android device with a nice user friendly interface for home automation? Or if anyone has seen a good tutorial pls let me know..

  • @francisroan
    @francisroan 11 лет назад

    Hi could you show how to do the opposite..i mean how to use the arduino ide to program the pi ..if that was possible mann it would be awesoem

  • @henrypenavillon971
    @henrypenavillon971 8 лет назад

    Greetings, does it work with other types of Arduino as the mini arduino with micro usb connection?

  • @hemi4837
    @hemi4837 11 лет назад

    I trying to build an inexpensive standalone single axis positioner. I’m using a RPi connected to a stepper controller. Do you recommend this or should I combine the RPi with Arduino? I only need 4 pins, step-direction-home-limit, from the RPi , so the extra pins from the Arduino are not needed.

  • @NanobeFLY
    @NanobeFLY 10 лет назад

    Hi, Do you think it would be possible to use an arduino board to input AV video to be displayed on a computer?

  • @oajitho
    @oajitho 10 лет назад

    Hello, Raspberry Pi guy! I have recently bought an Arduino Due. I am a beginner with some programming knowledge. I was thinking of making the Arduino to control a telescope(Celestron 50AZ) with servos to follow planets. I have recently found that the raspberry pi camera could be used with any telescope to record videos and take photos. I am planning to use a software called Stellarium which can be used with pi and some how use its data to contol motorized telescope to work with my servo.

  • @Zomm3r91
    @Zomm3r91 11 лет назад

    is there any way to connect arduino witch pi by gpio? and through it programm it?

  • @jurgenroman2686
    @jurgenroman2686 9 лет назад +1

    do you recommend a arduberry?

  • @kierancranley
    @kierancranley 11 лет назад

    Yes - it's the magnifying glass icon in the top right of the window (labelled Serial Monitor). It doesn't work for me with the RasPi. I get the message "Serial port 'COM1' not found. Did you select the right one from the Tools > Serial Port menu?" and when I go to Tools, "Serial Port" is greyed out (not available).

  • @bobketner3241
    @bobketner3241 10 лет назад

    I am using Pi to Mega. I need to get info from arduino mega to Pi. I have 25 inputs to Arduino. I assigned 5vdc to the inputs. I am trying to record piano player rolls to Pi then play back thru Mega.Your great video shows Pi to Mega Thanks... Do you have connections for Mega to Pi?

  • @jessieduran7883
    @jessieduran7883 10 лет назад

    Hello Im still new to all this but I need help on figuring something out. Can the Arduino be connected to the Raspberry Pi, a coin acceptor, and timer. If so can the Arduino be programmed to disable the usb ports on the raspberry pi until money is put in.
    I made a raspberry pi emulator and would like it to be coin operated.

  • @siddiqove
    @siddiqove 11 лет назад

    why did you skip setting of "serial port" under tool menu. I and many others are facing the "grayed serial port". how to enable it? it would be a great help if address this issue please.

  • @tarekshawki7356
    @tarekshawki7356 9 лет назад +1

    how can u control two raspberry pi together through webiopi ?? anybody got any plans ??

  • @tarekshawki7356
    @tarekshawki7356 9 лет назад

    i connected arduino and raspberry together by serial and i used the nanpy library to program the arduino for example make a led blink ... now i wanna make some web interface (i am working with webiopi) to switch the led connected to the arduino on or off how can i do that ??

  • @omaradil11
    @omaradil11 11 лет назад

    thank you very much !good tutorial

  • @henrylaredo
    @henrylaredo 11 лет назад

    Excellent!!!!

  • @apurbabtechutube
    @apurbabtechutube 11 лет назад

    I want to connect Raspberry Pi Tx, Rx Pin with Arduino, can you show a demo on that , I have followed some Tutorial but that's not working. Arduino is not receiving signal from PI, But from PI I can use wiring pi and can blink a LED.

  • @TheAcehere1
    @TheAcehere1 11 лет назад

    I will get arduino to have a go.. Please can we have more videos on this board.... Thanks Thanks Peter

  • @espiralseuz108
    @espiralseuz108 10 лет назад

    and what about connect an arduino mega via usb to RPi and control servos by an python program can i do that?

  • @JarleTeigland
    @JarleTeigland 10 лет назад

    Excellent Tutorial - how about NeoPixel ?? have you tested any of those ?

  • @manjeetsinhalonja3815
    @manjeetsinhalonja3815 7 лет назад

    heyy buddy i want to connect two L293D motor shield drives with arduino mega 2560.....so can you saw me the proper connections step by step...?

  • @mikea5319
    @mikea5319 9 лет назад

    Hi Pi Guy. Thanks, Ive been watching your videos lately as I wanted to start doing some home automation. Im not familair with programming/soldering etc but a bit familiar with Linux. I have a Pi running with wiringPi which is controlling my store front gate using a Garage relay script I found online and a 5v relay.... What I don't understand is WHY do some people use a RPi + Arduino for home automation? Why not just use the RPi or vice versa? I cant seem to find a video that would explain this in detail. Thanks again!

  • @micahnightwolf
    @micahnightwolf 10 лет назад +1

    Raspberry Pi operates at 3.3v, and most Arduinos operate on 5v. But if you are using the Arduino Due, which has the same number of digital and analog IOs as the Mega, you will not need resistors or transistors to connect it to the Pi or a BeagleBone because the Due also operates at 3.3v.

  • @davidryan2083
    @davidryan2083 11 лет назад

    Ciseco use a simple protocol called LLAP to talk to the radio's. I've already managed to make a RasPi turn LED's on using a USB radio pluged into a PC and XRF pluged into the RasPi via Slice of Pi.
    Also turn a motor on and off using one of their relay boards with the same USB dongle connected to PC and another XRF on the relay board.
    I'm thinking all kinds of home automation here. Need to brush up on Python for the RasPi before I can get much further.

  • @jeffreyshutrump4520
    @jeffreyshutrump4520 7 лет назад

    cant you set the arduino to un at 3.3V? or not this model?

  • @KickYouInTheThroat
    @KickYouInTheThroat 11 лет назад

    it doesnt matter how many tutorials i watch. i still laugh every time someone tells me to plug something into my raspberry.

  • @ThePMBull
    @ThePMBull 11 лет назад

    Excellent!

  • @dotmatrix2002
    @dotmatrix2002 8 лет назад

    Excellent video. From a guy that didn't know anything about Arduino. Nicely explained.

  • @nalin.perera
    @nalin.perera 11 лет назад

    Good tutorial

  • @kierancranley
    @kierancranley 11 лет назад

    The version of Arduino I'm using is 1.0.1 (this is the latest after using apt-get update and apt-get install arduino). The Board is: Gertboard with ATmega328 (GPIO) and the Programmer: Raspberry Pi GPIO. It doesn't matter what code I use, the Serial Port option just isn't available (greyed out) even for an empty sketch.

  • @Erdiil
    @Erdiil 9 лет назад

    Can I use Arduino on raspberry B+ ?

  • @lonelyrock16
    @lonelyrock16 11 лет назад

    You Rockkk, Man

  • @alphonsebenedict4327
    @alphonsebenedict4327 6 лет назад

    Thanks for the video sir :)

  • @harryburiram
    @harryburiram 9 лет назад

    Thank you very much!

  • @tobis.2886
    @tobis.2886 9 лет назад

    with which camera are you recording?

  • @turkuas23626
    @turkuas23626 9 лет назад

    you should make some tutorials about clone arduinos, mine has ch340 serial chip and raspbian does not support it!

    • @uktoker71
      @uktoker71 6 лет назад

      The latest releases do.

  • @sket123flamez7
    @sket123flamez7 2 года назад

    i bought a arduino for a project and it turned out to be fake or a clone with ch340 chip and cant be reprogramed or something and i cant do what i wanted is there a way to join rpi and arduino so i can bypass the chip and make it be recognised as a joypad same as a arduino leonardo

  • @vince086
    @vince086 11 лет назад

    What about a video (or set of videos) that deal with communicating between the Pi and Arduino using the Pi's serial ports (or other ones) ? Like this the arduino could be used to interface with hardware (since loads of libraries and documentation exist) and have the Pi deal with communications with the web ( for example streaming video from a webcam) and serving a webpage.
    Love the video tutorials. Hope you keep making them :)

  • @JohnnyReb1976
    @JohnnyReb1976 10 лет назад +1

    I would like but I'm suspicious of that LED without a resistor. There should be one. I believe that it just so happens the Arduino cannot supply enough current on the digital out to burn the LED, allowing you to get away with it. Still does not make it good practice.

  • @DinoMark74
    @DinoMark74 10 лет назад +3

    Please continue the radpberry pi with arduino videos. thanks.

    • @mikejonson333
      @mikejonson333 6 лет назад

      Hey, if you want to go deeper in RPlatform, you can take www.kaaiot.io/ solution to learn new stuff and understand how you can use your knowledge in the real projects. It's quite nice and usefull framework... you can create many interesting things on it

  • @default_youtube_profile
    @default_youtube_profile 7 лет назад

    Since you had USB plugged in was it powering arduino board ?

    • @uktoker71
      @uktoker71 6 лет назад

      Yes, the Arduino was being powered over USB. You can also use the Jack Socket on the Arduino with 7 to 20 Volts.

  • @koenraad6068
    @koenraad6068 10 лет назад

    MORE EPISODES PLEASE!

  • @Venrixx
    @Venrixx 10 лет назад

    is it possible to use usb hubs on the raspberry pi USB ports?, i mean, will it be safe?

    • @SiskinOnUTube
      @SiskinOnUTube 10 лет назад

      Yes. I use hubs with a couple of the RPis that I have. I did take the precaution of snipping the 5 volt (red) wire in the hub, to prevent back powering the pi. However, it is possible to back power the RPi, so long as the power supply to the hub is stable.

  • @justbanter8727
    @justbanter8727 8 лет назад

    my Arduino Leonardo with its YUN Shield attached is able to run Linux + has WiFi

  • @MARS-GREENH0USE
    @MARS-GREENH0USE 6 лет назад

    I'm starting a CNC build using Raspberry Pi to control the Arduino

  • @billyleggatt3267
    @billyleggatt3267 9 лет назад

    Hi, i have just started using an arduino uno and wanted to know some of the basics. I'm using it with the raspberry pi. I did everything that this video said but the external LED is still not flashing. However, the onboard one is. The program is not saying there's any programming errors and i cant figure out what's wrong with it. Does anyone have any tips on how to fix this?

    • @uktoker71
      @uktoker71 6 лет назад

      Either your LED has been damaged or you have it connected the wrong way round.

  • @stevedomenico5933
    @stevedomenico5933 8 лет назад

    Thank you!

  • @TimothyCareyDV
    @TimothyCareyDV 8 лет назад

    How do I e-mail you? I am new to raspberry, but programming in C++ in college. I like to be able to receive blue tooth mouse signals and do other things with the results. I am in a wheelchair and my joystick emulates a Microsoft blue tooth mouse so I can control my android phone with my control from my wheelchair control. I would like the raspberry to receive blue tooth mouse and have the Raspberry connected to the control of some type of control vehicles. Either connected to the remote for sending out directly to the vehicle. I have done projects with arduino.