EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / Bluetooth controlled Robot using MATLAB

Bluetooth controlled Robot using MATLAB

|

Miscellaneous › Others › Bluetooth controlled Robot using MATLAB

  • This topic has 1 reply, 2 voices, and was last updated 6 years, 10 months ago by Saatwik.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 24, 2016 at 10:36 am #4431
    Sourabh
    Participant

    I was working on a project in which I want to control a avr based Bot using a MATLAB based application via a bluetooth connection. I succesfully made the application to connect with the bot using a bluetooth module (HC-05). The problem rises is with sending commands to the robot in order to make that move in various directions. I am using Atmega8 in the Bot.
    Here is the code-
    AVR code-
    UCSRA=0x00;
    UCSRB=0x18;
    UCSRC=0x86;
    UBRRH=0x00;
    UBRRL=0x0C;

    ACSR=0x80;
    SFIOR=0x00;
    DDRB=0xFF;
    while(1)
    {
    char data;
    while(!(UCSRA & (1< {
    data=UDR;
    if (Data==’F’)
    {
    PORTB=0b00001010;
    }
    else if (Data==’B’)
    {
    PORTB=0b00000101;
    }
    }
    }

    MATLAB Code-
    instrhwinfo(‘Bluetooth’,’HC-05′)
    b = Bluetooth(‘HC-05’,1)
    fopen(b)
    fprintf(b, ‘F’) %– on execution of first command button
    fprintf(b, ‘B’) %– on execution of second command butoon

    March 2, 2019 at 4:12 am #15038
    Saatwik
    Participant

    you can get help from this project      https://www.engineersgarage.com/contribution/controlling-wireless-robot-matlab-gui

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • getting no where fast 8 x 8 led matrix January 23, 2026
  • Expensive hobby January 23, 2026
  • analog logic of shmidt trigger bjt circuit January 22, 2026
  • Micro mouse January 22, 2026
  • Best practices for accurate LiPo battery monitoring on ESP32? January 22, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise