Neural Network Robot With Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ค. 2024
  • Get your own ORP chassis and support the project: kck.st/3HF9Pyz
    Running artificial neural networks on Arduino is not a simple task but machine learning is so popular nowadays and can be used for so many cool things that I decided to give it a try! Here you can see my experiments with neural networks and Arduino!
    LCSC Electronics: lcsc.com/?href=nikodembartnik...
    Arduino kit: amzn.to/3Si1zLt
    Ultrasonic Sensor: amzn.to/3rXlPaJ
    Servo: amzn.to/3tNZFbm
    Arduino: amzn.to/49bLjBV
    Motor: amzn.to/40cXv14
    Artificial Neural Network code: bit.ly/2gteKFk
    Sean's video: • Arduino Neural Network...
    My gear:
    Camera: amzn.to/3VdbfGH
    Lens: amzn.to/44nY2z0
    Better lens: amzn.to/424iuCX
    Tripod: amzn.to/3Nh2Cca
    3D printer: bit.ly/43SS7S5
    Label printer: amzn.to/3oW55yn
    Headphones: amzn.to/3LDTXz6
    Speakers: amzn.to/3nl34eJ
    Oscilloscope: amzn.to/3HmGMjN
    Lab bench power supply: amzn.to/3HpotdD
    Soldering station: amzn.to/3Vd39xH
    Instagram: nikodembartnik
    #robot #arduino #neuralnetwork
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 238

  • @nikodembartnik
    @nikodembartnik  4 ปีที่แล้ว +11

    Support my projects on Patreon → www.patreon.com/nikodembartnik

    • @NitishYadav-lb7zc
      @NitishYadav-lb7zc 4 ปีที่แล้ว

      Please make more content of that kind 😊😊😊😊😊😊
      THATS AMAZING at least for me

    • @TechBots_yt
      @TechBots_yt 3 ปีที่แล้ว

      Can you see my project one time🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻😥😥😥😥😓

    • @shawnekuriakose
      @shawnekuriakose 3 ปีที่แล้ว +5

      where is the github code

    • @invonatormoustaphaalihssai2114
      @invonatormoustaphaalihssai2114 3 ปีที่แล้ว

      Pleas expriment code

    • @vrankyrule
      @vrankyrule 3 ปีที่แล้ว

      How much ram does this have??

  • @inferno6012
    @inferno6012 4 ปีที่แล้ว +122

    the first test did not work because it was scared first time in the world you know

    • @OlivierLopezCh
      @OlivierLopezCh 4 ปีที่แล้ว +10

      Makes sense

    • @nikodembartnik
      @nikodembartnik  4 ปีที่แล้ว +18

      Yeah, we should give it a little bit of time to let it adapt to the humans

  • @shaur1221
    @shaur1221 4 ปีที่แล้ว +143

    And here I am just trying my best to make a blinking led

    • @Kaelidian
      @Kaelidian 4 ปีที่แล้ว +3

      😂😂

    • @ishuxgaming8187
      @ishuxgaming8187 3 ปีที่แล้ว +9

      😂😂iam trying to just connect wire

    • @patricialim6816
      @patricialim6816 3 ปีที่แล้ว +1

      Same 😂

    • @RDKCREATIONS
      @RDKCREATIONS 3 ปีที่แล้ว

      🖕🖕🖕🖕🤭🤭🤣🤣🤣😂😂😂🤣🤣😂🤣🤣

    • @shaur1221
      @shaur1221 3 ปีที่แล้ว

      @@RDKCREATIONS :0

  • @potbot887
    @potbot887 3 ปีที่แล้ว +16

    In case you want to extend this project, I have few suggestions:
    Use Webots simulator to simulate your robot, that way you can train the neural net and see the output on your computer itself and try out various environment tests, before running it on actual robot itself.
    second, if your neural network works differently the next time you train it, use fixed set of initial weights, typically done by using "random seed" or just save the initial weights in a file and load it again the next time you train.

  • @dbs777229f
    @dbs777229f 4 ปีที่แล้ว +43

    I love to see the fails, it makes me feel better about my issues.

    • @Christian-mn8dh
      @Christian-mn8dh 4 ปีที่แล้ว +2

      Steve Washick it makes it more realistic

  • @danimaster6647
    @danimaster6647 4 ปีที่แล้ว +13

    Hey Nikodem,
    since you were speaking about something with more computing power and mentioned the RasPi: There is the Corel Dev Board available. This has a tensor processing unit and this makes it very powerful for neural networks. It runs models about 25 times faster then on a good CPU and costs about 150 Euro.
    This might be worth checking out for you, you can even do object detection/classification and other CNN stuff.
    Best regards

  • @Pmc07AyeUrDa
    @Pmc07AyeUrDa 4 ปีที่แล้ว

    Very good. The working montages added extra quality to the video.

  • @maciekm7953
    @maciekm7953 4 ปีที่แล้ว +3

    Ciekawy projekt 👍 siedzi się godzinami i walczy z problemami ale jak w końcu zadziała to jaka radość 😁

  • @realVertiqo
    @realVertiqo 4 ปีที่แล้ว +6

    Wanted to say that a couple times already but always forgot in the end. Your Cardboard Explanations are top notch Dude! Very very well made and easy to understand for younger folks especially i think.

    • @nikodembartnik
      @nikodembartnik  4 ปีที่แล้ว

      Thanks, those take a lot of work to make them, but outcome is amazing!

    • @ValleyMustang
      @ValleyMustang 3 ปีที่แล้ว

      Can somebody show me what you guys mean by these cardboard explanations

    • @realVertiqo
      @realVertiqo 3 ปีที่แล้ว +1

      @@ValleyMustang The way he explains stuff with cardboard cut outs and scribbles on it style. for example minute 0:50 onwards.

    • @farhanamin4075
      @farhanamin4075 2 ปีที่แล้ว

      Bro do you know where is schematics

  • @drakethomas652
    @drakethomas652 3 ปีที่แล้ว +7

    Just a suggestion for the sensor, I think you should try out a lidar or laser sensor, since at a certain angle, the ultrasonic sensor tends to send back false data.

  • @rodlupanow69
    @rodlupanow69 4 ปีที่แล้ว +1

    Just great, congrats. I want to try it too.

  • @ernknn
    @ernknn 4 ปีที่แล้ว

    I really like your content. Can you tell me what kind of battery you used for the car? Also, what kind of DC bench power supply are you using? Thanks!

  • @bassome3000ify
    @bassome3000ify 4 ปีที่แล้ว +2

    Really cool and awesome 👍👌💪
    1-train the neural network on your computer, then copy its weights to Arduino (train in computer, implement in Arduino)
    2-check neurona library, on the developer's website there's a browser based playground

  • @flingmonkey5494
    @flingmonkey5494 3 ปีที่แล้ว +2

    I have had trouble with the ultrasonic sensors, I sometimes get bogus short readings from them, due to the wide detection cone and echos from the floor itself. I started experimenting with taking three readings and accepting the highest value I got. This smoothed things out. Also, I suggest you make the robot move a little slower, allowing more time to take the readings.
    One challenge I would love to take would be to take the basic car you have there, rip off the ultrasonic sensor, throw in a gyroscope, and make it accept commands like "turn to x degrees" and "forward", and so on. These commands would be coming from a second Arduino that controls all the sensors (SoftwareSerial communications.) Once you have a base driveable vehicle that can drive a straight line and turn to any heading, construct another Arduino or RPi system that senses the surroundings and issues commands to the drive system.

  • @NachiketaHebbar
    @NachiketaHebbar 4 ปีที่แล้ว +1

    Great Job, Loved the experiment! The only reason for it not working with great accuracy could be a small dataset, which is the backbone of a neural network.
    Increase the data set by simply providing left, right , center values and which direction the bot should move ,in a csv file.
    However that seems unnecessary here, as the problem can be solved with simple if else statements .
    Nevertheless , nice video. Best of luck !

  • @owenoj
    @owenoj 4 ปีที่แล้ว +1

    I've built basically the same thing, the only difference is, is I let the sensor take a reading from left and right then position the sensor forward, which is its default position and determine which direction to move towards where the object is farthest away. When it detects it's getting close, it stops, looks left and right and does the same thing again. Therefore the sensor is always looking forward whilst moving, and only looking left and right when it's stopped which is when it's gotten too close to something.

  • @TanishqIsHere
    @TanishqIsHere 4 ปีที่แล้ว +7

    A Pi-Zero would be a much better option for this, have a look at Sipeed MAIX too.

  • @kreisumfang6175
    @kreisumfang6175 4 ปีที่แล้ว +5

    Agradable, me gustaría ver proyectos similares con Arduino y explicados a nivel de código, gracias.

  • @thorzhou4468
    @thorzhou4468 4 ปีที่แล้ว +1

    Great job! Is this project open source, where can I see the source code?

  • @Guilherme-uu8ql
    @Guilherme-uu8ql 4 ปีที่แล้ว +1

    "Could be done with an if statement", " the problem is that the robot is on" hahaha very funny, nice content

  • @imiebaka
    @imiebaka 4 ปีที่แล้ว

    Keep it up lad, Nice video
    ...

  • @omarcruz6326
    @omarcruz6326 ปีที่แล้ว

    That's VERY COOL !!! 😎
    Great job, Sir.

  • @Pedritox0953
    @Pedritox0953 4 ปีที่แล้ว

    Niko this is an excellent project... the trainning in NN is very sloooow in general... also i recomend to use supervised learning... what is that? Simulate the input and output of the NN to train the weights... another recommendation is that for sensors fix is better due to noise... place them like 30 degrees... simulate input and output as desired... train the NN... Enjoy!! Cheers

  • @vighneshkrishna1716
    @vighneshkrishna1716 4 ปีที่แล้ว +4

    Bro , is it possible to get your mail or any other source to contact you. I got a great project in my mind but actually i’m stuck at a point.

  • @tthtlc
    @tthtlc 4 ปีที่แล้ว +7

    Good video, now I am motivated to do something.....

  • @entiretwix1480
    @entiretwix1480 4 ปีที่แล้ว +4

    I had a dream about this, then today it was in my recommended

  • @go_better
    @go_better 3 ปีที่แล้ว

    Very interesting episode! Thanks!

  • @lucsonnelson8037
    @lucsonnelson8037 ปีที่แล้ว

    Great video brother. Only thing is I wish that I could see hir you implemented the sensors and the motors in the sketch. Please I kinda want to build something similar with more sensors, but don't know how to link the NN in my project. Help 🙏🙏🙏

  • @parthjoshi5779
    @parthjoshi5779 4 ปีที่แล้ว +8

    5:58 to 6:22
    perfect MacBook air advertisement
    maybe

  • @romeshfernando2959
    @romeshfernando2959 3 ปีที่แล้ว

    Use three ultrasonic sensors because you can get three inputs(distances) at the same time. As an example , if it takes one second to get distance of one side, in your robot it will take three seconds for three sides. but when you use three sensors it will take one second for all three sides. I have ddeveloped one and I used three sensors + back sensor . It is working fine

  • @VeerDaVlog
    @VeerDaVlog 3 ปีที่แล้ว +1

    7:11 - How did you shoot timelapse like this?

  • @supermodernotv
    @supermodernotv 4 ปีที่แล้ว +5

    Good job, keep making cool videos

  • @joseiltonricardo
    @joseiltonricardo 2 ปีที่แล้ว

    Você é muito novo, com toda certeza terá muito tempo para implementar suas ideias em redes neurais.. Parabéns pelo vídeo!!!

  • @mikegLXIVMM
    @mikegLXIVMM 3 ปีที่แล้ว

    Great work!

  • @peyo33641
    @peyo33641 3 ปีที่แล้ว

    Hum but with which training data do you train your model ?

  • @xianox8
    @xianox8 3 ปีที่แล้ว

    Is it even viable to train a NN in this way (without it taking for ages)? I'm convinced that it is the processing power that is limiting you, but it is that you do it in real time. What I would attempt to do is to make a computer simlation of the car movement and sensors and train that simulated car.

  • @valentinburillier9029
    @valentinburillier9029 4 ปีที่แล้ว +1

    Good job, it's an interesting video. In order for your robot to learn you will have to integrate Q-learninge and not base you on a dataset. Your robot will learn with a system of reward

  • @shivambansal3560
    @shivambansal3560 4 ปีที่แล้ว

    Well done buddy..!!!

  • @noa7784
    @noa7784 3 ปีที่แล้ว

    Hello, I really needs some help in path planning. I do hope you can help me. I have the same prototype as you had. Only is that I have to implement path planning with obstacle avoidance.

  • @ahmadkafabi1266
    @ahmadkafabi1266 3 ปีที่แล้ว

    where can i get full program with execution hardware output arduino ex. go turn right ,left ect. because your code program just to training NN weight data

  • @hanifhendri4174
    @hanifhendri4174 4 ปีที่แล้ว

    What software you use for code block arduino?

  • @peterjamali772
    @peterjamali772 4 ปีที่แล้ว

    For Ai which programming language should i start with?

  • @pedropabloantunezgomez7408
    @pedropabloantunezgomez7408 ปีที่แล้ว

    Could you please share the code modified? I am very interested in working with it with my students but cannot finish the project.Thanks and good job

  • @bitnbytes01
    @bitnbytes01 2 ปีที่แล้ว

    Awesome video but my spidy senses were detecting misaligned picture frames in the background but I like that :), chaos is needed in this line of work. I will definitely try this AI robot kit out. Good project.

  • @erumanbredberry9238
    @erumanbredberry9238 4 ปีที่แล้ว +1

    Молодчина, Никодим )

  • @goodn1051
    @goodn1051 4 ปีที่แล้ว +1

    Am a simple man...
    I see NN,I click,I subscribe and I like

  • @chathurafernando1299
    @chathurafernando1299 4 ปีที่แล้ว

    Great work mate but you should minimize the speed of motors and servo. And next time use the " interrupt ". It's more easier.

  • @TheTinkerDad
    @TheTinkerDad 4 ปีที่แล้ว +4

    Ok, this is really cool. Never thought something like a neural network is possible on a low power device like an Arduino.

    • @frankai.3713
      @frankai.3713 4 ปีที่แล้ว

      Running a trained net is not a big deal

  • @virtual_ninja810
    @virtual_ninja810 4 ปีที่แล้ว

    Did you won any competition on instructables?

  • @NitishYadav-lb7zc
    @NitishYadav-lb7zc 4 ปีที่แล้ว +1

    Please create more robots of that kind 😊😊😊😊

  • @elasticheartchandelier4249
    @elasticheartchandelier4249 4 ปีที่แล้ว

    hey may u tell me about that How To insert coding in robort??

  • @DanyMaster
    @DanyMaster 3 ปีที่แล้ว

    Of course this experiment could be better if you use other platform, but you've used Arduino (understanding this limitations) I think the result is very cool... Well done mate!!

  • @camilaespindola2380
    @camilaespindola2380 4 ปีที่แล้ว

    congratulation !!!

  • @joetke
    @joetke 4 ปีที่แล้ว

    When I first saw the title vs. the video length I was perplex: talking about neural networks in 10 minutes... On top of it you use arduino.. hummm. That should be a big challenge I thought. Then you made a pretty good demonstration of a good methodology, embedding that library and eventually seeking a better one which led you to an almost success. Congrats!
    I'm happy as well because your background matches mine regarding serious coding backed by some maths. Looks like Poland takes advantage of its past ties with the USSR and their scientific education which relies heavily on maths. (Obama said that american students lack that solid basis). Anyway, We've implemented on a RaspberryPi 3B a machine learning using google tensorflow (there are decent tutorials about it on youtube for those in a hurry, and google provides straight-forward applications too). It works flawlessly and we intend to build a robot like yours. I do think that it's pretty hard to dive into details when it comes to explain neural networks to a large audience. It could be really boring for some people ;) Your animation may help
    Last word: 10 minutes to explain what you've really done to make your robot respond properly, is really, really too short. It may frustrate some of us. It's a pity. But I'm looking forward to watching better documented AI applications at a slower pace ;) Thank you Nikodem!

    • @nikodembartnik
      @nikodembartnik  4 ปีที่แล้ว +2

      I try to keep my videos rather short and entertaining :) I know sometimes it's hard to explain stuff really well in 10 minutes, but if you want perfect explanation of NN there is already a lot of great videos on youtube about that. I also don't know enough about them to make such video :)

    • @joetke
      @joetke 4 ปีที่แล้ว

      @@nikodembartnik you're a honest guy.

  • @gordonyoud5975
    @gordonyoud5975 4 ปีที่แล้ว +1

    Slow down the sensor swing, if it is looking for a return signal after sending out a pulse, the echo might be missed. :-))

  • @navanda4676
    @navanda4676 4 ปีที่แล้ว

    Here is and idea.
    If you make a game that are a virtual representation of the "car". Then you can an random generated "labyrinth" and put a neural network in multiple cars and use an Genetic Algorithm instead.
    That makes it faster to lean and you don't have to monitory it. Plus you make the genetic algorithm a powerful computer instead off the arduino. Like a said just an i idea, really liked it video.
    Keep it up!

  • @oELxTOROo
    @oELxTOROo 4 ปีที่แล้ว +1

    It would be cool to see if you can get a simple machine learning program on a raspberry pi!

  • @DIVERGEsound
    @DIVERGEsound 3 ปีที่แล้ว

    Nice video!

  • @jay-rathod-01
    @jay-rathod-01 4 ปีที่แล้ว

    Beautiful

  • @mateuszspec1658
    @mateuszspec1658 4 ปีที่แล้ว +1

    Po akcencie poznałem że to Polska XD
    Pozdrawiam, mega robocik :D

  • @sarabhian2270
    @sarabhian2270 2 ปีที่แล้ว

    so finally I got something to do 👀, what I will do now is , I have same ultrasonic sensor and something similar moving bot, i will try something new ,thanks buddy 👍

  • @herok4306
    @herok4306 4 ปีที่แล้ว +1

    Bro what's the background music...?

  • @alanarturopinedasegura3373
    @alanarturopinedasegura3373 4 ปีที่แล้ว

    greatings
    from mexico

  • @mohammadwahba3077
    @mohammadwahba3077 4 ปีที่แล้ว

    good job and idea

  • @tharakadimantha1043
    @tharakadimantha1043 3 ปีที่แล้ว

    good job brother.Thanak you

  • @farahsumudlayon7890
    @farahsumudlayon7890 2 ปีที่แล้ว

    you're so good!

  • @muhamadekanugraha6882
    @muhamadekanugraha6882 4 ปีที่แล้ว

    That robot was like my life without a purpouse, and being told just don't make a mistake.

  • @ramyak1486
    @ramyak1486 3 ปีที่แล้ว

    Where can I get the modified code?

  • @code-grammardude5974
    @code-grammardude5974 4 ปีที่แล้ว +2

    I am currently making a Raspberry pi robot and I have a webcam on it. It is convenient because you can use great Python libraries like Tensorflow and Keras to make Neural Networks.

    • @joetke
      @joetke 4 ปีที่แล้ว

      I've posted a comment without reading yours. Tensorflow + Keras wrapped in python = terrific combo

    • @supermodernotv
      @supermodernotv 4 ปีที่แล้ว

      The nice thing of this approach is the you get to learn how those NNs work starting from scratch. All thise frameworks are great but they abrstract a lot of what is going on underneath. This project is great fro learning the basics a bit like when you blink an LED to learn the basics of microcontrollers

  • @NghiaHuynh-ir7bv
    @NghiaHuynh-ir7bv 4 ปีที่แล้ว

    I didn't realize how it get input and create output to control this robot, im just a beginer :D, could u explain it more clearly,plz?

  • @smipy
    @smipy 4 ปีที่แล้ว +2

    8:33 - 8:39
    Robot : Go Stupid...
    Go Crazy.....

  • @aymansharaf7456
    @aymansharaf7456 4 ปีที่แล้ว +2

    Can you give us the modified code!!

  • @anujpatil1931
    @anujpatil1931 4 ปีที่แล้ว

    Can you also make a arduino program for data glasses

  • @naskoelectronics9072
    @naskoelectronics9072 4 ปีที่แล้ว +4

    The problem is not in the arduino he is enough powerful the problem is in the code

  • @kruttikabhomkar9850
    @kruttikabhomkar9850 ปีที่แล้ว

    What can be the expense of this project

  • @eUltrabyte
    @eUltrabyte 4 ปีที่แล้ว

    Dobry film ziomek

  • @emanuelepacini_
    @emanuelepacini_ 2 ปีที่แล้ว

    which pc do u have?

  • @farhanamin4075
    @farhanamin4075 2 ปีที่แล้ว

    Can anybody help me understand the concept of neural network being applied on Obstacle Avoidance robot

  • @abhishek_sengupta
    @abhishek_sengupta 4 ปีที่แล้ว

    Thumbs up bro!

  • @arnabmandal1332
    @arnabmandal1332 4 ปีที่แล้ว

    Good work buddy..

  • @Speedy0475
    @Speedy0475 2 ปีที่แล้ว

    Dobra robota,no wiesz robot-a

  • @sajidahmed5079
    @sajidahmed5079 2 ปีที่แล้ว

    Test out side of home...you r getting reflection from wall...so robot is rotating in all direction..or set range of detection of sensor

  • @sarojverma6299
    @sarojverma6299 3 ปีที่แล้ว

    Make sensors in 8 sides and increase their range and it will be perfect also slow the speed

  • @muhammadbasir83
    @muhammadbasir83 3 ปีที่แล้ว

    I thought it was only me who put a piece of tape on the webcam. haha

  • @ffoska
    @ffoska 4 ปีที่แล้ว

    Write the node weights to eeprom. Pretty cool project !

    • @nikodembartnik
      @nikodembartnik  4 ปีที่แล้ว

      Thanks! Yes, that would be a good idea :)

  • @li-pingho1441
    @li-pingho1441 4 ปีที่แล้ว

    You are my hero...

  • @DevineIshaq107
    @DevineIshaq107 3 ปีที่แล้ว

    Don't need AI for such operations, 8 direction functions, 3 range finders with comparison operators: the bot will pave through obstacles and can be trained fo pass through a gate

  • @swathikaravindran1942
    @swathikaravindran1942 3 ปีที่แล้ว

    How the neural network algorithm to be inserted in to the arduino board

  • @doktutor
    @doktutor ปีที่แล้ว

    I want to ask, why chinese toy can do this thing without usng AI neural network?

  • @saravanakumar2765
    @saravanakumar2765 4 ปีที่แล้ว

    I understand your feelings. Today I try to code color shorting machine from 12.30am to 8.00pm still I not succeed 😢.

  • @diatomictech9560
    @diatomictech9560 ปีที่แล้ว

    how can i get contact with you?

  • @kiszkilukiszki4057
    @kiszkilukiszki4057 3 ปีที่แล้ว +2

    You are from poland?

  • @philippebenaim2676
    @philippebenaim2676 2 ปีที่แล้ว

    Nice, but I can see that you don't wait enough time to take the distance with your ultra sonic sensor. So I think you have many errors of measurement...
    Try Vl53l0x, it's little laser in I2C, and is very fast and accurate 👍And you have many libraries for arduino 😋

  • @esdrasalbino
    @esdrasalbino ปีที่แล้ว +1

    Can you provide the code?

  • @mobilegaming5694
    @mobilegaming5694 4 ปีที่แล้ว +1

    8:11 This is what i wanted to make
    One month ago

  • @arthuraraujo8190
    @arthuraraujo8190 4 ปีที่แล้ว

    Just use 3 sensors, so it would not have any delay

  • @snarrkk
    @snarrkk 4 ปีที่แล้ว +2

    That's cool but didnt roomba make this already?
    What I'm wondering is what benefit the neural network will have for it to determine to go forward or not

  • @primodernious
    @primodernious 2 ปีที่แล้ว

    the commodore neural net linear matriz is a good ezample of how the brain works kind of. if there is a z instead of... its broken keyboard.

  • @kinhkong69z62
    @kinhkong69z62 2 ปีที่แล้ว

    So cool

  • @Kanjox
    @Kanjox ปีที่แล้ว +1

    awesome