- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In electro-tech-online I asked about my need of making a device wich could generate a sinusoidal signal (by PWM method) with a 18F4550 Ucontroller, but it seem it is not possible. Someone named Dana suggested me to see the information about this cypress device. So, the questions are:
1. Is it possible to make a threephasic 5 KHz signal (3 120 degrees unphased signals), wich could be used by a power stage to handle about 1 ampere each branch in some kind of power transistors?
2. If the signal is analog, is it a way to isolate the control stage from the power stage?
3. Is it possible to stop or restart this signals with a Ucontroller signal? Or further, to control amplitude?
4. Do this device is sold and there are existences now on Mouser, Arrow or DigiKey?
Thank you for your time
Luis
Solved! Go to Solution.
- Labels:
-
ispn:39618:1:0
-
l1:314:1:0
-
PSOC5LPMCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
luisj,
Attached a demo project showing ANALOG 3-phase output of the sine waveform with variable frequency and amplitude. Note that this is not digital output, which is used with BLDC controllers. To obtain 3-phase 12Vx1A output using this approach you need additional external power amplifier.
Project uses DMA to transfer sine data from RAM buffer to VDAC_1, 2, 3 to produce 120-degree shifted sine voltage. The number of the sample points in the sine waveform can be varied, making 12,24,36,48... steps per period.
Frequency range [1kHz to 10kHz], resolution 32-bit (~0.01 Hz)
Amplitude range [0V to 4V p-p], resolution 8-bit (~0.015V)
Frequency adjustment achieved using DDS32 as DMA clock
Amplitude adjustment achieved by re-calculating RAM Buffer values
A Rotary Encoder is used to adjust frequency and amplitude.
Project uses several custom components:
DDS_sw 0.0_beta (included in the project)
DDS32 v0.1 - 32-bit-DDS-arbitrary-frequency-generator-component
QuadDec_SW 0.1 - Quad Decoder with Button Switchfor rotary shaft encoders
PSoC Annotation Library 1.0
Sync32 v0.0 - Sync32 custom component for PSoC5 and PSoC4
This video tutorial shows how to Add Library Dependencies to the project:
/odissey1
Figure 1. Project schematic.
Figure 2. Rotary encoder to update frequency (or amplitude).
Figure 3. KIT-059 project annotation using PSoC Annotation Library v1.0
Figure 4. CY8CKIT-059 board actual pinout.
Figure 5. Scope traces: Yellow - reference; Cyan, Magenta and Blue - 3x120deg sine, 36 points/period, 5kHz, 4V p-p.