hello, Thanks for taking the time to look at my question.
I am new to the arduino uno and the motor shield r3. What i like to be used for is to read a temperature using the transistor LM35 and i would like it display the temp on an LCD, also i am using (4) 80mm PWM fans(Arctic F8) to keep cool on some equipment. i dont know what library to use and i cant find how to designate the orange 3 pin output from the motor shield. I have tried searching in google and in the arduino fourm. i have tried searching through pages of info. Unless i am stupid or blind and i cant find what i am looking for. From what i have seen on youtube, people mostly use the UNO more than the motor shield for thier application respectivly. I have been having a hard time on how to use the motor sheild r3.
If i am unclear on what i asking let me know.
Also i am not code savey i have barley touched programming.i am trying my best at learing the arduino code =(
and i cant find how to designate the orange 3 pin output from the motor shield.
Are you referring to the official Arduino Motor Shield? If so, there are two orange blocks. The pins on those blocks are connected to digital pins 5 and 6, as noted just below the blocks.
Unless i am stupid or blind and i cant find what i am looking for.
I'll assume that you are not, but, you haven't said what you are looking for, so I can't help you find it.
Also i am not code savey i have barley touched programming.i am trying my best at learing the arduino code
The hardest part often is defining the requirements in such a way that they can be implemented in code. How difficult it is to implement the requirements is often less a matter of being good at programming as it is a matter of lousy/incomplete/conflicting requirements.
From what you have described so far, all I can tell is that you want to use the motor shield, and that you have 4 motors. For what isn't at all clear.
in the examples provided by arduino i saw that it as a library for that particular function, for instance like the stepper motor.
Would i need to find something similar to be able to run the LCD and Fans.
also to help clarify on what i am trying to do is, being able to regulate a tempuratuer using the LM35, 4 fans, and an LCD dispaly.
lets say if the temp is at 80F then the fans will be at idle of about 500-600 rpm and if temp is at 100F then it increases, utill the temp is back at 80F
so i would use digitalWrite(somevalue) in order for it used as an output from the two orange blocks.
so i would use digitalWrite(somevalue) in order for it used as an output from the two orange blocks.
No. The analogWrite(somePin, someValue) function is used to alter the duty cycle of those pins. Whether that is sufficient, though, remains to be seen, as dxw00d pointed out.
Also, that shield is only designed to control two motors, not four. And, no, you can't stack them.
Being that i can only use 2 fans, dxw00d said ("Note that PC fans require a much higher PWM frequency (around 25KHz) than the Arduino hardware PWM defaults to (around 490Hz") what do i use to boost that PWM from the arduino to run the fans.
i did some more reasearch on this helpfull forum and found something that might help me with boosting the PWM using the servo library from 490Hz to the needed frequency to run the fans, but i read that changing PWM frequency could disrupt normal operation. Is there another way around that like a seperate IC chip that can work on the UNO and shield?