Jump to content
43oh

mfpek

Members
  • Content Count

    18
  • Joined

  • Last visited

  1. @@RobG i stucked again i've done the pcb. at the beginning it didn't work at all. after some adjusments, i got voltage out of motor pins but a motor doesn't run with it. there is voltage out of it but no current. how is that even possible? is pcb broke? any idea? l293d is functional by the way.
  2. @@RobG i drove the pcb layout on ares. i added layout files to attechments (the site doesn't let me uploud ares file). Now the deal is how can i take a output of schema that fits real measurements of peripherals? i am trying extending or narrowing the images but it doesn't seem like gonna work. project ares pdf (Page 1).bmp with peripherals (Page 1).bmp
  3. @@RobG i drove the pcb layout on ares. i added layout files to attechments (the site doesn't let me uploud ares file). Now the deal is how can i take a output of schema that fits real measurements of peripherals? i am trying extending or narrowing the images but it doesn't seem like to be working.
  4. @@RobG i can control pwm signal at enable1 pin with buttons but no input or output voltages whatsoever. i think it's related to the cables or board.
  5. @@RobG i am just trying to get through this project right now, but i am really starting to understand how embedded systems work. i moved on to next step of the project - PCB of the circuit. before i started to draw it on isis-ares, i tried to see if it will work while msp430 chip is on breadboard. i put to msp430's pin 1 to vcc, pin 20 to ground on board and made other pin assigments with l293d. But as always it didn't work on first try. Any special requirements for this application that you think i don't know?
  6. @@RobG sir it works like a charm. i really owe you a big time. if we were in same country, i would like to take you to a fancy dinner What's your job by the way? Is this just a hobby for you or what if i may ask?
  7. @@RobG i get pwm signals on led now and buttons also work. i am gonna try it with the motor.
  8. @@RobG i did what you said. i think p2.3 acting like a ground because when i put the led+resistor's one pin to ground it didn't even lighten up a bit. but when put it to vcc, led turned on. but no dim or brighten up of course.
  9. @@RobG i set the circuit all over again. p2.3 to l293d's enable1 p2.0 to input1 p2.1 to input2 output1 to motor (-) output2 to motor (+) But motor didn't run with this way. i checked enable1's pin voltage with a voltmeter and it's 0. so i put motor's one pin to input1 and the other one to input 2. by this way motor turns both ways and stops with button control. but pwm buttons make no changes. How and why can those be?
  10. @@RobG i couldn't catch why my timer output is wrong. where is the mistake? it is CCTL1 = OUTMOD_7; #include "io430.h" #include "in430.h" #define Button_forward P1IN_bit.P0 #define Button_reverse P1IN_bit.P1 #define Button_Stop P1IN_bit.P2 #define IN_1 P2OUT_bit.P0 #define IN_2 P2OUT_bit.P1 #define EN_A P2OUT_bit.P2 #define EN_B P2OUT_bit.P3 #define Button_faster P1IN_bit.P3 #define Button_slower P1IN_bit.P4 void main(void) { WDTCTL = WDTPW + WDTHOLD; DCOCTL=CALDCO_1MHZ; BCSCTL1=
  11. @@RobG i am using g2553 and trying to configure pins again at the moment. .
  12. @@RobG Sir, i am trying to put your code to in my code. but i couldn't able to work them together. i posted my code and my circuit schema. i am willing to use p1.3 for acceleration and p1.4 for slowing down, with pwm of course. Would you mind to take a look at the code and add this buttons.i am really appreciated for former code part but as i said i couldn't make it work. i am sincerely thankfull for your helps.
  13. I checked l293d's datasheet and enable1(pin 1 on l293d) must be pwm input. So pwm out from msp430 should be p2.0. but how can i set both pwm out and enable1 out on a single pin? and yes i do want outmod_7. i forgot that some how.
  14. @@enl i tried to put together my code and RobG's. #include "io430.h" #include "in430.h" #define Button_forward P1IN_bit.P0 #define Button_reverse P1IN_bit.P1 #define Button_Stop P1IN_bit.P2 #define IN_1 P2OUT_bit.P0 #define IN_2 P2OUT_bit.P1 #define EN_A P2OUT_bit.P2 #define EN_B P2OUT_bit.P3 #define SWITCH1_BIT P1IN_bit.P3 #define SWITCH2_BIT P1IN_bit.P4 void main(void) { WDTCTL = WDTPW + WDTHOLD; DCOCTL=CALDCO_1MHZ; BCSCTL1=CALBC1_1MHZ; P1DIR |= BIT3+BIT4; P1SEL |
×
×
  • Create New...