Hey everyone, total noob here... Trying to get a hard drive disc to work as a spin coater. I want to use a DIY tachometer to get a reading of the speed so I can make a panel for the dimmer switch with different velocities (I dont know what the techinal term for that kinda thing is)... Anyway, I want to know how I should go about wiring the arduino to the ESC and the LCD (which appears to have a shield on it with 4 pins comming out (I think its something similar to an I2C?), the dimmer switch, and the IR sensor.
I have absolutely no idea what I'm doing. I will try to figure out the coding after I get the wiring down. I think I have all the parts I will need, I just dont know what goes where.
Can anyone point me in the right direction? I have been trying to google around for stuff, but nothing is too helpful, so I feel like I am probably searching for the wrong things. If anyone here has any advice on how to wire this up that would rock.
Thanks
Provide a link to the LCD, or, a clear picture showing the pin markings to confirm the I2C.
Which Arduino ar you using?
Weedpharma
dimmer = potentiometer aka pot
measured in Ohms of resistance.
gosh, I feel like a flower child of the 60's, we got pot, saying 'ohmmmm.....'
Its an arduino uno! The potentiometer is marked B1K
The LCD is 1602A with a shield that has gnd, vcc, sda, and scl pins and a chip that says PCF8574T. The 16 pins start at vss, vdd v0 RS, RW, E, D0 through D7, A, and finally K.
The ESC is a Thunder Tiger (from the actual plant in Taichung...finding an ESC in Taiwan without proper mandarin skills is tough) BLC-12 12A JC 1051. The motor has 4 pins in a tape kinda thing attached in a semi circle with the one to the far left labled with what looks like an F 20 and the one to the far right with a two way arrow sign followed by a 1.
I also have a bunch of wires, some pcb board, headders, an IR LED, and an IR photoreciever with a 21 on the back
I2C can be connected as
5v and gnd connect to those onboard.
SDA connect to A4
SCL connect to A5
Make sure you have the correct library to drive the LCD via I2C.
Weedpharma
Thanks!
I hope theres enough space for the ir sensor AND the ESC controller and potentiometer... Is it possible to control both at the same time?
Where can I wire them up?
The Uno will handle all of these.
The potentiometer is wired from 5v to gnd and the wiper connects to an analogue input. I would prefer to use a 10k pot.
It sounds like you need to do some reading on the basics. I suggest a lot of reading rather than asking the forum to design and code the complete project.
Start by reading the pot and outputting the value to the serial monitor. Add the LCD then output the values to the LCD. Then add the IR.
Get each part working before moving onto the next.
Weedpharma