Skip to main content

Robot Competitions Tutorial - Wall Maze Solving Robot 7

Let's move on to coding part.



First, I define the motor pins.

//M1
int enA = 5;
int in1 = 3;
int in2 = 4;
//M2
int enB = 6;
int in3 = 7;
int in4 = 8;

Then define the ultrasonics pins
int trigLF = 11; //Trig - green Jumper
int echoLF = 10; //Echo - yellow Jumper
int trigRF = 18; //Trig - green Jumper
int echoRF = 19; //Echo - yellow Jumper
int trigF = 16; //Trig - green Jumper
int echoF = 17; //Echo - yellow Jumper
int trigRB = 14; //Trig - green Jumper
int echoRB = 15; //Echo - yellow Jumper

Likewise complete code you can find in the above link.
https://github.com/buddhikadesilva/Wall-Maze-Solver-Robot

See you.

Comments

Popular posts from this blog

What is A-Frame.io

What is aframe?? Before I get this I like to ask from you, Did you ever have to get a virtual reality? Someones are Yes! or Not!, Do you like to get that experience? So here it is. A-Frame is a web framework for building virtual reality (VR) experience. This web frame is an open-source web framework that can develop many things. It is primarily maintained by Mozilla and WebVR community. But originally from Mozilla. A-Frame was developed to be an easy but powerful and easy way to develop VR content. As an open-source project, A-Frame has grown to be one of the largest and most welcoming VR communities. A-Frame is based on top of HTML, simple to get started. But A-Frame is not just a 3D scene graph or markup language. It is an entity-component system framework for  three.js  where developers can create 3D  WebVR  scenes using HTML. Nowadays HTML provides a familiar tool for web developers and designers while incorporating a popular game development pattern use...

SDLC (System Development Life Cycle)

මේ SDLC කියන්නේ මචන් cook book එකක් !! ඒ කියන්නේ හරියට manual guide book එකක් වගේ සීන් එකක් හැබැයි ඔව් cook book එකක් කියන්නේ කෑම වට්ටෝරු පොතක් නේ. දැන් මෙහෙම හිතපන් උබට ඕනේ වෙනවා පරිපුවක් හදා ගන්න. නැ ඒ පරිප්පු නෙමේ කන පරිප්පු. මේ පරිප්පු වේ recipe එක විදිහට තමා අපි හදන්නේ ඒ කියන්නේ 2 කුට නම්  ලුණු තේ හැදී භාගයයි, පරිප්පු කොප්පයි, මිරිස් කරල් 2 යි කහ තේ හැදී කාලයි ඇයි ඒ?  අපිට ලුණු මේස හැන්දක් මිරිස් කරල් 10 විතර ගන්න තහනම්ද? නැ මචන් තහනම් නැ හැබෙයි එහෙම හදපල්ලා කාගෙවත් බාධාවක් නෑ. මේකයි මචන් අපිට කලින් පරම්පරාවේ මිනිස්සු මෙන්න මේ පරිප්පුව හදන විදිහ වැරදිලා වැරදිලා වැරදිලා ක්‍රමවේදයක් හොයාගෙන තියෙනවා හෝ හෙවිලා තියෙනවා අපිට වඩාත් හොදින් කොලිටියට පරිප්පුව හදාගන්න :O ඉතින් මේ SDLC පරිප්පුව  "මෘදුකාංග වැඩිදියුණු කිරීමේ ජීවන චක්‍රයක්". ඒ කියන්නේ හැමදාම පරිප්පුව හදනවා ඉවර වෙන්නේ නෑ. හරියට සංසාර චක්රේ වගේ. මෘදුකාංග ජීවන චක්‍රය ඉවර වෙන්නේ නෑ කියන්නේ බන්ස්, අපේ සංසාර ච්ක්රේ  ඉපදෙනවා, හොද නරක කරනවා, මැරෙනවා, ආය ඉපදෙනවා, හොද නරක කරනවා,මැරෙනවා, අයේ ඇති ඇත...

Dark Web

                                    Dark Web කොහොමද යාලුවනේ, අද මම කතාකරන්න යන්නෙ ගොඩක් දෙනෙක්   වැඩිය දැනුවත් නැති ,ඒ වුනාට අපි අනිවාරෙන්ම දැනගත යුතු   මාතෘකාවක්   ගැන. ඉතින් අපි බලමු මොකක්ද ඒ කියලා. මොකක්ද මේ  Dark web කියලා කියන්නෙ....  D ark web කියන්නෙ අන්තර්ජාලයේම කොටසක් නමුත් dark web කියන එක අපිට search engine එකක් හරහා බලාගන්න බැහැ.ඒ සදහා අපිට anonymizing browser එකක් භාවිතා කරන්න වෙනවා.එහෙම භාවිතා කරන browser එකක් තමයි Tor කියන්නෙ. dark මේක  ගොඩක් භාවිත වෙන්නෙ criminal activity වලට ඒ නිසාම hotbed of criminal activity කියලත් මේ dark web එක හදුන්වනවා.   ක්‍රෙඩිට් කාඩ් අංක , සියලු ආකාරයේ මත්ද්‍රව්‍ය , තුවක්කු , ව්‍යාජ මුදල් , අනවසරයෙන් නෙට්ෆ්ලික්ස් ගිණුම්   වලට සහ වෙනත් පුද්ගලයින්ගේ පරිගණකවලට ඇතුළු වීමට උදව් වන මෘදුකාංග මිලදී ගැනීම ,පරිගණකවලට පහර දීමට හැකර්වරුන් කුලියට ගැනීම,   පරිශීලක නාම සහ මුරපද ම...