Sine Cosine Encoder Generator

Job ID: 31116561

Budget: $12 – $30 SGD

Shall generate sine cosine wave based on analog inputs, over Arduino ESP32 platform, simulating sine cosine encoder output

Required,
1. Arduino ESP32
2. Identify 1 digital input for direction indicator, 1. clockwise, 2. counter clockwise
3. Identify 2 DAC for a sine wave and a cosine outputs
4. identify 1 analog input (AIN) for potentio meter input
5. identify 1 digital output for revolution pulse (REV)

output
1. 1 revolution will consist of 5 cycles of sine (and cosine) wave
2. revolution begin at peak of sine and end at trough of sine for clock wise, revolution pulse shall stay HIGH
3. revolution begin at trough of sine and end at peak of sine for counter clock wise, revolution pulse shall stay HIGH
4. frequency of sine shall be described by y = sin(x) + c, where c = 0, where x is a function of AIN
5. AIN shall be 0 to 3.3V, and mapped to 0 to 100% between 0.3V to 3V, and mapped linearly
6. 0% shall be f=0 and 100% f=6000ppm pulse per minute for REV