Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA Amazon AWS CompTIA Security+ AWS Certified Developer - Associate
Photoshop Graphic Design Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Mindfulness Personal Development Meditation Personal Transformation Life Purpose Neuroscience Emotional Intelligence
Web Development JavaScript React CSS Angular PHP WordPress Node.Js Python
Google Flutter Android Development iOS Development Swift React Native Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Retargeting
SQL Microsoft Power BI Tableau Business Analysis Business Intelligence MySQL Data Analysis Data Modeling Data Science
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Online Business Business Plan Startup Freelancing Blogging Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
30-Day Money-Back Guarantee
Teaching & Academics Engineering Robotics

LEGO Robotic C Programming

use real coding to control LEGO Robot. Learn C programming while play LEGO.
Rating: 4.0 out of 54.0 (9 ratings)
129 students
Created by Charlie Zhang
Last updated 3/2015
English
English [Auto]
30-Day Money-Back Guarantee

What you'll learn

  • Learn C code basic
  • Use C code to control LEGO Robot
  • Know Robot hardware IO ports
  • How to control the Robot motors
  • How to control the sensors
  • How to develop an control algorithm to complete a task

Requirements

  • have a LEGO Robot mindstorms NXT or EV3
  • have a windows pc as the complier only works in windows enviroment
  • a USB cable to connect your computer to Robot (should included in LEGO set)

Description

Course Description

The course teaches you how to use the C programming to control the LEGO Robot. It is not the NXT software but more cool NXC coding. You can learn the basic C coding skill and special function for the LEGO Robot. You can develop an algorithm to let your Robot auto pilot the field and find enemies.

Build a strong foundation for beginner for the C coding and hardware control.

Learn the function definition.

How to use parameter.

Loop control, while, repeat and If else.

Hardware IO control.

Advanced function like PID controller.

Synchronize the two wheels.

A powerful skill to learn

C is the basic language for a lot of coding projects. It also share very similar grammar with all other advanced coding language. Through the classes, you could learn the C basic format and the essential functions like the while loop, if/else control. It open the door to beginner.

The classes also teach how the C code connect to the hardware through the input/output (I/O) ports. After compiling, the C code could translate to lower level language to read and write the hardware IO and then control the Robot.

Through the I/O interface, the sensor could send feedback information back to Robot processor. So you could write an algorithm to control the Robot based on what it sees.

The two Robot motors are controlled by the I/O. You could learn how to control the motor from basic speed control and motor rotate control. A classic PID control could be implemented to speed up the response. A synchronous control could guide the Robot to move in a straight line or in a specified curve.

Content and overview

First, you will learn how to download the software compiler and how to use it to compile the code and download to LEGO Robot.

Second, you learn the basic coding to send a message to Robot screen. You can see how the computer talk to your Robot. By using basic function like repeat and while loop, if/else functions, you could move the Robot and make it turns.

After learned the coding basic, you could use the coding to control the sensors like touch sensor and ultra sound sensor. Using the sensors allow you to control the Robot to achieve your tasks. I show you an example the Robot will search enemies in the filed and attack it.

More complicated function will also be taught. The PID control will control the Robot precisely. The synchronous control will control the two wheel in phase or has a phase shift. By using the function, the Robot could move straight line or circle or a curve.

All of these could be done using the coding. It reveals a new fun world for the LEGO Robot. It does much more than self contained NXT software.

Who this course is for:

  • Kids from age 8 + and want to learn coding by playing LEGO
  • Beginner to learn coding skill
  • Beginner to learn the hardware control
  • Anyone who has interest to develope their own algorithm for Robot

Course content

4 sections • 11 lectures • 50m total length

  • Preview03:34

  • Preview04:13
  • Preview02:51
  • Let Robot make a turn
    02:36
  • Robot moves a square loop
    06:11

  • Touch sensor
    04:23
  • Ultra Sound Sensor
    03:48
  • Auto search enemies
    05:05

  • Synchronous control on two wheels
    02:33
  • PID controller for Robot
    06:26
  • Snake move
    08:33

Instructor

Charlie Zhang
Electrical Engineer
Charlie Zhang
  • 4.0 Instructor Rating
  • 9 Reviews
  • 129 Students
  • 1 Course

I got Ph.D. degree in Electrical Engineering from Louisiana State University, Baton Rouge and Master degree from University of Southern California. I work more than 10 years in electrical design in big companies like Qualcomm, LSI and Micron. Combining teaching experience in college where I taught the undergraduate students and working experience in real life circuitry, hardware design, I have very strong background to teach you how the Robot works by using C programming to control it. I start to teach the coding from my kids. They learn the LEGO Robot by using the NXT. While the NXT software is some kind of simple, I found we could use some C coding to overwrite the software to control the Robot and do some complicated function. Even there is PID control which is the classical theory in modern control system. There is a lot of more you could do with your LEGO Robot. For teenager, the NXT software may be a little easy for them. So learning the coding is perfect for them to learn and have challenging. I teach in local community in San Diego.


  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.