element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Op-Amp-a-Palooza
  • Challenges & Projects
  • Project14
  • Op-Amp-a-Palooza
  • More
  • Cancel
Op-Amp-a-Palooza
Blog Op-Amp Line Follower - Blog 2 Following the research
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Op-Amp-a-Palooza to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: javagoza
  • Date Created: 23 Apr 2022 5:31 AM Date Created
  • Views 6152 views
  • Likes 13 likes
  • Comments 9 comments
  • opampsch
  • triangle wave oscillator
  • pwm
  • opamps
  • Op-amp-a-Palooza
  • voltage follower
Related
Recommended

Op-Amp Line Follower - Blog 2 Following the research

javagoza
javagoza
23 Apr 2022
Op-Amp Line Follower - Blog 2 Following the research

After my first mistakes destroying the operational amplifiers that had been sent to me through misuse, I continued the project looking for alternatives and I discover that my capacity to make mistakes is infinite.

Looking for rail-to-rail op amps

In order to continue with the project without having to wait, I decided to look at home for what I could take advantage of. I needed rail-to-rail op amps for the triangle wave oscillator.
Searching I found an OP484 quad single-supply, 4 MHz bandwidth amplifier featuring rail-to-rail inputs and outputs from Analog Devices that I was using in a previous project.
Something similar, a light follower jumping robot controlled with a TM4C123CXL.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

I already had my rail-to-rail Op Amp to generate the triangle wave.  I only found one OP484 so I had to reduce the scope of the project and simplified the circuit.

Driving the motors

My next mistake was buying some IRF530NPBF MOSFETs to control the motors. I should have bought ones that were from the IRL series.
The IRF series require 10v (VGS = 10.0 V) at the gate to fully open. New problem, then I remembered the TI-RSLK  that was asleep in its box for a long time.

image

The TI-RSLK has a motor driver and power distribution board made by Pololu. The output driver block consists of Nchannel power MOSFETs configured as an H-bridge to drive the motor winding. An internal charge pump generates needed gate drive voltages.

So I decided to cannibalize the TI-RSLK and use the Pololu motor driver and power distribution board.

This motor driver and power distribution board is designed specifically for the Romi chassis as a convenient way to drive the chassis’s motors and power the rest of the electronics that make up your robot. It features two DRV8838 motor drivers, one for each of the chassis’s motors, and a powerful switching step-down regulator that can supply a continuous 2.5 A at 5 V or 3.3 V.

image

The output driver block consists of Nchannel power MOSFETs configured as an H-bridge to drive the motor winding. An internal charge pump generates needed gate drive voltages.

Line sensors

The TI-RSLK comes with a QTR-8RC Reflectance Sensor Array. The LEDs are controlled by a MOSFET with a gate normally pulled high, allowing the LEDs to be turned off by setting the MOSFET gate to a low voltage. 

image

Unfortunately this line sensor could not be used for my Op Amp Line Follower. It is a recommended line sensor to be controlled from a microcontroller. You must first charge the output node by applying a voltage to its OUT pin. You can then read the reflectance by withdrawing that externally applied voltage on the OUT pin and timing how long it takes the output voltage to decay due to the integrated phototransistor. 

So again I went back to the light follower jumping robot and stole the photoresistors from it. I used them to react to reflected light emitted from two LEDs.

image

image

Romi chassis 

And to continue with the recycling I used the chassis of the TI-RSLK. The Romi chassis is a differential-drive mobile robot platform with a diameter of 6.5″ (165 mm) and an integrated battery holder for six AA batteries. The drive wheels are located on a diameter of the circular base plate, allowing for turns or spinning in place. A large, fixed ball caster in the rear provides a smooth third point of contact.

image

https://www.pololu.com/product/3543/resources

Simple Line Follower Schematics

image

image

The Reference Voltage Level combines an Op-amp voltage buffer, which copies a voltage signal from a high-impedance input to a low-impedance output with a resistive voltage divider to form a fixed voltage reference.

The PWM controller was made of a triangular wave oscillator and a comparator. The triangle wave oscillator creates a symmetrical triangle wave.

The triangle wave oscillator first uses an integrator with a constant dc input voltage to generate a ramp. The integrator output drives a Schmitt trigger. The output of the Schmitt is what ought to determine the direction of the ramp. And use its output as the input to the integrator.

OP434 is used for the triangle wave oscillator and the  PWM controller. All four amplifiers are used.

Transient response

image

Breadboarding the circuit

For the first tests I built the circuit on a breadboard.

image

Checking the response without connecting the motors.

Oscillators square and triangle waves and PWM signals for both motors.

image

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Testing with the motors

The first prototype in action. It already needs some tweaking, but the line follower... follows!

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Next steps

I finally have something that "works". Now I will build the circuit on a prototyping board by soldering the components.

Project Blogs

  • Op-Amp Line Follower - Blog 1 First Steps
  • Op-Amp Line Follower - Blog 2 Following the research
  • Op-Amp Line Follower - Blog 3 The Line Follower
  • Sign in to reply
  • javagoza
    javagoza over 3 years ago in reply to darieangelescu

    I had another program using that display but not with Energia.

    Source code: https://github.com/javagoza/tivaspaceinvaders

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • javagoza
    javagoza over 3 years ago in reply to darieangelescu

    Sorry I didn't use Energia.

    You can try this library

    https://github.com/automation-technology-club/TILaunchPad-Projects/tree/master/Energia/Energia-0101E0017%20Projects/libraries

    Note that this library only works with some versions of Energia.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • darieangelescu
    darieangelescu over 3 years ago in reply to javagoza

    i'm using energia for coding, code composer is a bit difficult for me, could you indicate me the part of the code which outputs info about the robot for the lcd ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • javagoza
    javagoza over 3 years ago in reply to darieangelescu

    I used this guide

    https://training.ti.com/node/1139302?context=1135347-1139302

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • darieangelescu
    darieangelescu over 3 years ago in reply to javagoza

    How did you implement the code for the LCD ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube