appear on the lines if they are digital inputs) set PWM pins as digital outputs (the PWM signals will not initialize all PWMs to 0% duty cycle (braking) use the system clock/8 (=2.5 MHz) as the timer clock Timer0 and Timer2 count up from 0 to 255 set OCxx on compare match, clear on timer overflow configure for inverted PWM output on motor control pins: before you use any of the above macros Motor Initialization routine - this function must be called #define M2_REVERSE(pwm) OCR2B = 0 OCR2A = pwm #define M2_FORWARD(pwm) OCR2A = 0 OCR2B = pwm #define M1_REVERSE(pwm) OCR0B = 0 OCR0A = pwm #define M1_FORWARD(pwm) OCR0A = 0 OCR0B = pwm Motor Control Macros - pwm is an 8-bit value #include // uses F_CPU to achieve us and ms delays #define F_CPU 20000000 // system clock is 20 MHz Just to make sure I have stayed within convention I have included my program below. It appears that either the delay is too short, which its seems ok, or I am looking for the wrong type of signal on On this except that i should search the forums, which I could not find anything on RC/pluses width/and servo positions. Jan never said anything about pin High/LowĪt one point JAN did say that for this type of application with RC I would need to sense 1-2ms pulses at 50hzĪnd the pulse width determines the servo position ? do you know what he is talking about? Jan said nothing further channel 6 on my Radio has no effect of stopping or starting Starts executing the motor routine over and over, without stopping. As soon as I power on the receiver, the babyO the BabyO is self powered by another power source. my rc radio is setup to control the babyO via channel 6 which is a phyical switch with 3 postions ( down, middle, up = which might mean right, center/neutral/left ). I am feeding PC3(on the babyO168) a signal in from my “rc reciever” (yellow wire), and black to ground. It simply executes the motor routine over and over, probably because the pin is never seen as low. Ok almost there, 90% there, it works with one exception, there is no sensing of PIN3 high or low. The LV-168 has some hardware that the Baby Orangutan B does not, but the common hardware has the same pin mapping, so the code to control the common hardware will work on both units. Lastly, take a look at some of the demo programs for the Orangutan LV-168. Orangutan-lib is not completely compatible with the Baby Orangutan revision you have, but you might be able to use parts of it and it might be useful as sample code. You can also take a look at Orangutan-lib, an open source C library for the Orangutan library of robot controllers. This forum has a lot of code examples spread throughout the various threads, so you might first try searching around. I also recommend you take a look at some sample mega168 code. It should also help you figure out what you don’t yet understand well enough so that you can ask more specific questions. This should give you a better idea of what your options are. I recommend you first take a brief look at the mega168 datasheet. Use a pin-change interrupt to detect the signal.Use one of the external interrupt pins and set up an external interrupt service routine that will be called at the appropriate time (e.g.Poll the state of the digital input in your main loop.There are many ways to approach your particular problem: In the future, please don’t add your questions onto the ends of unrelated threads (especially threads in the announcement forum, which is intended for Pololu news and reactions/comments about that news). There used to be another tool called hwinfo, which is no longer available for Ubuntu since 13.10.I have split this post into a new topic. This is for a server with ECC memory (as can be seen from the Error Correction Type field and the difference between Data Width and Total Width).īoth tools are dependencies of the ubuntu-standard package and should be available by default on all Ubuntu systems. Use the lshw command with the memory class: $ sudo lshw -C memoryĭescription: SODIMM DDR3 Synchronous 1600 MHz (0.6 ns)Īs you can see, I'm using DDR3 1600MHz RAM.Īnother option is dmidecode: $ sudo dmidecode -t memory
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |