Using the 16f18877 (BL0011) and DDS9834 ic.
Using the 16f18877 ADC to read a voltage from 0 to 5vdc.
I'd like to scale the 5vdc over 360 points.
When a signal is out of phase I would roughly know how far out of phase by the voltage difference between the two signals and load a predetermined amount of cycles to DDS phase shift registers.
Any ideas on how to scale the 5vdc to 360 degrees?
ADC suggestion
-
hippalator
- Posts: 28
- http://meble-kuchenne.info.pl
- Joined: Tue Jul 15, 2025 9:05 pm
- Has thanked: 4 times
-
medelec35
- Valued Contributor
- Posts: 2203
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 669 times
- Been thanked: 748 times
Re: ADC suggestion
Hello.
You can use the Map Function component (Component Libraries > Math > Calculation)
That will save you having a float variable and to then then multiply voltage by 72.0.
You can use the Map Function component (Component Libraries > Math > Calculation)
That will save you having a float variable and to then then multiply voltage by 72.0.
Martin