No, see post #40 I'm using a power only cord for the Teensy, it's plugged into a wall wort. I was trying to figure how to add the analog write. It's cycling from slow to full speed about every 5 sec.
I really don't know how to write code for these things at all. I just want to control the fan speed with the pot.
const int fan_control_pin = 9; // Blue Wire on fan (about 25kHz PWM)
volatile int count = 0;
unsigned long start_time;
int rpm...
Oh, I thought it got power from the yellow wire. I connected the power only cord to the Teensy and now the fan cycles from slow to full speed about every 5 seconds. No effect with the pot.
The board is wired like the diagram in #39 except the 12v and GND are reversed. There is conflicting info. online. I have a couple more fans ordered that have colored wires. In the mean time if I fry something it's not the end of the world.
Thanks, I can do it tomorrow. I got this fan used and the wires aren't colored. I was able to determine the 12v and GND pins but it is possible the other 2 are wrong. The fan runs with just the 12v and GND connected.
I tried this code, when I connect the fan as in the photo the potentiometer does nothing, It just runs full speed. Any idea what's wrong? I'm using a Teensy 3.2
const int fan_control_pin = 9; // Blue Wire on fan (about 25kHz PWM)
volatile int...
The URL option seems to have magickly appeared, there still is no scroll bar on mine and no the box doesn't expand. Anyway I've moved on, I was able to upload the sketch on both the 3.6 and the 3.2 boards, unfortunately I've used up all my time...
I was finally able to find a 1.8.19 download, I had to dig for it. On the Arduino site the next available version is 1.8.18 is that coincidence? So I got it working on the windows 10 PC but not the windows 11 with the 2.0. the box that appears...
The first screenshot is of the 1.8x the dropdown menu gives these options,
select version
1.58.2
1.57.3
1.56.2
0.60.1
I used the URL you said . Teensy does not show up in the list of boards. It used to on my old PC
The second screenshot is...
It's not the cable, I'm aware of the power only ones. I have a nano every that uses the same cable and it works fine. The last time I used the teensy I had a windows 7 PC, as I recall the teensy showed up in the boards manager even with no board...
I tried both those things, the Board Manager installer for IDE 2.x has no knowledge of a Teensy and the !.8 shows it but says only works with 2.0 or later.
I have a PC with windows 10 and one with 11 , the 2.3.4 IDE doesn't work on the windows 10 PC so I went back to 1.8 IDE on that one. The windows 11 PC has the 2.3.4 IDE which works but doesn't acknowledge Teensy. I tried to install Teensyduino...
Thankyou, I didn't realize this would be this hard. I have a 3.2 if that would work better. I'm most interested in the sound level which is why I want to use a pot rather than temp control.
const int fan_control_pin = 9; // Blue Wire on fan...
I want to control the speed of a 4 wire CPU fan with a potentiometer, I was told these require high frequency PWM, 25kHz.
I have an old Teensy 3.6 I was wondering if it could work. There is a guy on YouTube that changed the frequency of an...