Hello
New to Flowcode and microcontrollers.
Have an electronics education (early 1990's) and electrical background from before microcontrollers were a thing.
Recently found Flowcode and like it over Vizuino.
Its pretty easy for a newby like myself to config a DAC using Vizuino but I'm not sold on using an arduino for a small project I have in mind.
I would like to use an internal DAC (learning with the B0011) but know nothing about config'ing a DAC in Flowcode.
Could anyone here point me to some Flowcode learning material on how to go about seting up an internal DAC?
Thank You
Internal DAC
-
- Posts: 2
- http://meble-kuchenne.info.pl
- Joined: Tue Jul 15, 2025 9:05 pm
- Has thanked: 2 times
-
- Valued Contributor
- Posts: 1619
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 358 times
- Been thanked: 567 times
Re: Internal DAC
Hi
The WiKi is a good place to start https://www.flowcode.co.uk/wiki/index.p ... =Main_Page
If you then type DAC into the search bar (middle left) you will get a list of related items to choose from including Internal DAC. You can also get to the WiKi directly by right-clicking the component and choosing "Help".
The WiKi by nature is a work in progress and sometimes examples are still to be added.
This link has both Sawtooth and Sine wave examples https://www.flowcode.co.uk/wiki/index.p ... :_General)
Another good source of help is the Examples and Tutorials page, again accessed from the WiKi https://www.flowcode.co.uk/wiki/index.p ... _Tutorials
The YouTube channel can also be very helpful https://www.youtube.com/user/MatrixMultimediaLtd
Hope this helps.
The WiKi is a good place to start https://www.flowcode.co.uk/wiki/index.p ... =Main_Page
If you then type DAC into the search bar (middle left) you will get a list of related items to choose from including Internal DAC. You can also get to the WiKi directly by right-clicking the component and choosing "Help".
The WiKi by nature is a work in progress and sometimes examples are still to be added.
This link has both Sawtooth and Sine wave examples https://www.flowcode.co.uk/wiki/index.p ... :_General)
Another good source of help is the Examples and Tutorials page, again accessed from the WiKi https://www.flowcode.co.uk/wiki/index.p ... _Tutorials
The YouTube channel can also be very helpful https://www.youtube.com/user/MatrixMultimediaLtd
Hope this helps.
-
- Valued Contributor
- Posts: 1619
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 358 times
- Been thanked: 567 times
Re: Internal DAC
Hi
Extremely simple example attached.
Counter loops 32 times and outputs value to DAC before starting again.
If you simulate you will see the "voltage" rise on the DAC component.
Regards
Extremely simple example attached.
Counter loops 32 times and outputs value to DAC before starting again.
If you simulate you will see the "voltage" rise on the DAC component.
Regards
- Attachments
-
- ExampleDAC.fcfx
- (9.73 KiB) Downloaded 6 times
-
- Posts: 2
- Joined: Tue Jul 15, 2025 9:05 pm
- Has thanked: 2 times
Re: Internal DAC
Thanks for the help ChipFryer (love the name)chipfryer27 wrote: ↑Fri Jul 18, 2025 6:50 amHi
Extremely simple example attached.
Counter loops 32 times and outputs value to DAC before starting again.
If you simulate you will see the "voltage" rise on the DAC component.
Regards
Question:
What sets the voltage increment for each loop cycle in the above example?
I can follow and understand the code but not seeing where the increment value is set.
My project is to build a stable (rail to rail) sine-wave generator.
MCU's fit the bill for stability.
Sine-wave generator chips (my era of the 90's) are no longer in production with the advent of MCU's.
So here I am way behind the MCU ball with virtually no experience in programming them.
In Vizuino you simply type the output frequency you desire in its respective block and BINGO out of the DAC comes the frequency.
Pretty simple.
The 328P MCU is a great chip, but its not a PIC and Vizuino does not program PIC's.
I've searched the web looking for examples of how to program a DAC (internal or otherwise) rail to rail sine-wave.
Any help is appreciated.