Search the Community
Showing results for tags 'ultrasonic'.
-
I'm working on a project where I need to oscillate at 25khz. I've been using the PWM built into the MSP430G2553 and it doesn't seem to be accurate enough to give me exactly 25khz. I've been getting anywhere from 23khz to 27khz and cannot figure out why it's off by so much. I might be doing something wrong. Does anybody know what sort of accuracy I should expect from the on board PWM in the MSP430G2553. Is there a way to make it more accurate? I was looking at adding an external crystal, but would rather not add that complication if it isn't necessary.
- 2 replies
-
- msp430g2553
- pwm
-
(and 1 more)
Tagged with:
-
I have a code from an arduino to control servo position based on the distance output of the ultrasonic sensor. The servo just turns back and forth and there's no serial output at all. Everything is attached to the appropriate pins. I'm literally brand new at this so i really have no idea how to trouble shoot. Any help would be appreciated. This is the code i'm using. #include <Servo.h> //Setup the variables for the HC-SR04 const int trigPin = 3; const int echoPin = 4; // create servo object to control a servo // a maximum of eight servo objects can be created Servo myservo;
-
Here I summarize the hardware connections (schematic given below) and source code (attached) to build a Distance meter using MSP430 Launchpad and Ultrasonic Sensor HC-SR04. Project: Ultrasonice based Distance Meter with LCD Display Microcontroller: MSP430G2231 on MSP-EXP430G2 Launchpad Ultrasonic Ranging Module: HC-SR04 16 msp_dist.c
- 1 reply
-
- HC-SR04
- ultrasonic
-
(and 3 more)
Tagged with:
-
hi, i'm new to the msp430 and i'm using the msp430G2553 on the launchpad. I need a sample code the read distance measure from maxBotix Maxsonar (Lv-MaxSonar-Ez). doesn't really matter what the code does as long as it read distance. thx