+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Newbie level 2
    Points: 29, Level: 1

    Join Date
    Mar 2019
    Posts
    3
    Helped
    0 / 0
    Points
    29
    Level
    1

    Green/Red detector and button controlled car (BASYS3/VHDL)

    Hi, I am a 2nd-year ee student, and I need to make a term Project. With BASYS3 by using VHDL.

    My purpose is constructing a car which can be controlled with the buttons on BASYS3 ( I think I need Bluetooth module for it to RC a car). In addition to that my car should stop when it sees red ( i think I should use a color sensor for it) and should not work until it sees a green. These “red” and “green” can be anything like green cubic toys.
    This color sensor does not have to be mounted on the car, but it would be better if it is.

    I have very little information about basys3, vhdl, sensor design, etc. (this is my first course in ee I was learning principle courses like math, phy, cs )

    I would appreciate any help.
    Thanks.

    •   AltAdvertisment

        
       

  2. #2
    Advanced Member level 4
    Points: 8,031, Level: 21
    Achievements:
    7 years registered Created Blog entry
    dpaul's Avatar
    Join Date
    Jan 2008
    Location
    Germay
    Posts
    1,194
    Helped
    258 / 258
    Points
    8,031
    Level
    21
    Blog Entries
    1

    Re: Green/Red detector and button controlled car (BASYS3/VHDL)

    Have you searched the Digilent forums or some GitHub projects?

    There should be similar project (if not exact).

    https://forum.digilentinc.com/topic/55-basys-%C2%84/
    FPGA enthusiast!



    •   AltAdvertisment

        
       

  3. #3
    Member level 5
    Points: 749, Level: 5

    Join Date
    Dec 2017
    Location
    Bydgoszcz - Poland
    Posts
    91
    Helped
    17 / 17
    Points
    749
    Level
    5

    Re: Green/Red detector and button controlled car (BASYS3/VHDL)

    Hello,

    you can use one of colors sensors available on the market, for example this one (has quite good parameters):

    https://www.adafruit.com/product/1334

    It has big dynamic range (light) and I2C interface. It is easy to connect I2C device to FPGA board, there is a lot of example code (HDL languages) on Opencores.org

    https://opencores.org/projects

    Regards



    •   AltAdvertisment

        
       

  4. #4
    Newbie level 2
    Points: 29, Level: 1

    Join Date
    Mar 2019
    Posts
    3
    Helped
    0 / 0
    Points
    29
    Level
    1

    Re: Green/Red detector and button controlled car (BASYS3/VHDL)

    Quote Originally Posted by FlyingDutch View Post
    Hello,

    you can use one of colors sensors available on the market, for example this one (has quite good parameters):

    https://www.adafruit.com/product/1334

    It has big dynamic range (light) and I2C interface. It is easy to connect I2C device to FPGA board, there is a lot of example code (HDL languages) on Opencores.org

    https://opencores.org/projects

    Regards
    I thought only PMOD sensors are applicable for FPGA

    are you sure that i can use this sensor on basys3



  5. #5
    Member level 5
    Points: 749, Level: 5

    Join Date
    Dec 2017
    Location
    Bydgoszcz - Poland
    Posts
    91
    Helped
    17 / 17
    Points
    749
    Level
    5

    Re: Green/Red detector and button controlled car (BASYS3/VHDL)

    Quote Originally Posted by kmesne View Post
    I thought only PMOD sensors are applicable for FPGA

    are you sure that i can use this sensor on basys3
    Hello,

    yes I am sure - it is "normal" I2C protocol that can be implemented on any FPGA board. Just take a look on these free IP-cores at this link (just see projects starting width I2C):

    https://opencores.org/projects?expan...n%20controller

    PMOD uses SPI protocol for comunication - I don't like PMODs because often their example code is too complicated or weird ;)

    Regards



--[[ ]]--