Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Sonar radar ( altera de0 nano )

Status
Not open for further replies.

Kaan

Newbie level 3
Joined
Dec 24, 2014
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
18
Hello everyone, im working on it privately. I studied hard in lesson. Now have project instead of final exam...
I have 9 lessons also..
Could anyone can help me ?
I have altera de0 nano
2x hcsr04
Digitus rs232 and max 232 circuit
Servo motor SM-S4303R
3.3v to 5v and 5v to 3.3v circuit

Please help me with code
I already searched for rs233 and made max232 circuit and there is rs232 code in fpga4fun
Please help me.
I need code for servo motor. I want to turn it 180 degree and stop 0.5 every 30 degree.
I will add state diagram for servo.

- - - Updated - - -

Here the basic state diagram for servo



I have 2 week to do this. Unfortumately last week is exam week...
Teacher want codes in verilog hdl.
IF you have code for hcsr04 please share with me
 
Last edited by a moderator:

I need code for servo motor. I want to turn it 180 degree and stop 0.5 every 30 degree.

Is it a servo similar to the type used in radio-controlled planes, etc?

Then you send it pulses which vary between 1 and 2 milli-seconds. The motor automatically turns to match the signal.

Example, send 1.5 mSec pulses to make it turn to the midway position.

A typical frame rate is 50 times per second.
 
  • Like
Reactions: Kaan

    Kaan

    Points: 2
    Helpful Answer Positive Rating
I see.
I want to turn my motor 0=> 180 degree and turn start position back.
Do you have any example ?
I worked with other group's members. we wrote code but after all they do not want to give me codes because of my groups members...
I have 10 days left to finish project but after all i have 0..
Need hc-sr04 and motor code..
 

A PWM pulse generator comprises of

1. Counter - the width of the counter control the PWM frequency (The wider the counter the slower the frequency)
2. Comparator - the running counter value is compared to your position value. This determined the duty cycle of your signal.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top