Electronza
  • Homepage
  • Privacy
    • Privacy Policy
  • Contact
Electronza
  • Homepage
  • Privacy
    • Privacy Policy
  • Contact
Electronza
You are at:Home»Electronics projects»8-bit PIC projects»Xpress board: Obstacle avoiding robot with XC8 code
MPLAB Xpress board: obstacle avoiding robot
MPLAB Xpress board: obstacle avoiding robot

Xpress board: Obstacle avoiding robot with XC8 code

0
By Electronza on July 14, 2016 8-bit PIC projects, Robots

Front click socket

As I plan to use the same IR distance click featured in the Buggy obstacle avoiding project, I need one front click socket. For this I made one click adapter from one Proto click, which I have fixed onto the breadboard base using a pair of PMB-1 mounting couplers. I’ve installed header sockets on both sides of the Proto click, so it acts like an adapter. The only thing to consider is that the Proto click is facing down, so take care when wiring your project.

The breadboard robot: universal rover platform, with front mikroBUS socket
The breadboard robot: universal rover platform, with front mikroBUS socket

Batteries

I used one battery holder for 4 AAA batteries, mounted underneath the breadboard with double-sided tape. As it is, it allows for enough ground clearance so this robot will run fine on flat surfaces.

The breadboard robot with front mikroBUS socket
The breadboard robot with front mikroBUS socket

Xpress board

To install the Xpress board onto the breadboard I first soldered header pins underneath the Xpress board. For easy access to the pins I also installed some jumper wires, as in the pictures below:

The breadboard robot: preparing the XPRESS board
The breadboard robot: preparing the XPRESS board
The breadboard robot with Xpress Demo board installed
The breadboard robot with Xpress Demo board installed

A screw terminal was also installed on the Xpress board power header, so I can power it from the breadboard. The Xpress board has only a power regulator for the 3.3 voltage. If powered this way the battery power will also be present on the 5V pin in the click socket, so don’t use click boards that require 5V.

Wiring the robot

We come here to the final stage, wiring the robot. First we connect the motor drivers and the power for the Xpress board, as shown below. Channel A uses pin RC2 for PWM and RC7 for direction, while channel B uses pin RC4 for PWM and RC5 for direction.

Wiring the motor driver: power and mode
Wiring the motor driver: power and mode
Connecting the battery
Connecting the battery
Motor driver: connecting motors
Motor driver: connecting motors
Motor driver: control pins
Motor driver: control pins

Then we connect the IR distance click. For this we need only three wires: Vcc, GND and the AN analog output is wired to pin RB0, same as if it was installed directly on the Xpress board.

Connecting the distance sensor
Connecting the distance sensor
Wiring the IR distance click
Wiring the IR distance click

 

With this the hardware side is complete and we can start writing the code.

1 2 3
MPLAB Xpress XC8 PIC16F18855 Xpress Evaluation Board ir distance click DM164140 MIKROE-1991 Pololu Robot DRV8835 Obstacle Avoiding MIKROE-1507
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

Related Posts

New MPLAB Xpress boards

MPLAB Xpress: three new boards

Clicker 2 for PIC18FK

Review: Clicker2 for PIC18FK

Xpress Board with Altitude Click

Microchip Code Configurator: now with support for click boards

Leave A Reply Cancel Reply

Latest posts
January 15, 2023

A pretty text box for Blogger posts

January 15, 2023

New blog section: beginners’ corner

January 15, 2023

Cleaning unused images from blogs hosted on Blogger

Categories
  • Beginners' corner
  • Electronics projects
    • ESP8266
    • Arduino projects
    • IoT
    • 8-bit PIC projects
    • Raspberry PI
    • PIC32 projects
    • Robots
  • Arduino libraries
  • Reviews
    • Tools & equipment
    • Development boards
    • IoT
    • Industrial Arduino
  • Blogger / Blogspot
  • Tutorials
  • Casual stuff
Popular posts
Arduino Uno 4-20mA communication using 4-20mA R click and 4-20mA T click boards from MikroElektronika: MIKROE-1296, MIKROE-1387, Uno Click Shield
August 17, 2016

4-20mA current loop Arduino tutorial Part I: hardware

ECG click on Arduino Uno
December 5, 2016

ECG click: Arduino IDE code examples

ESP8266 Thing Dev from Sparkfun
May 15, 2019

ESP8266 – running on battery power

Arduino water timer
February 25, 2015

Gardena water timer controller using Arduino Uno

Thunderstorm
February 10, 2015

AS3935 lightning detection using Arduino Uno

Copyright © 2023 Teodor Costachioiu

Type above and press Enter to search. Press Esc to cancel.