Flexible Pulse Sequence Generator

Thread Starter

danadak

Joined Mar 10, 2018
3,569
No shortage of posts here at AAC about generating multiple pulses, some with varying widths.
Coupled with folks not used to programming.

This is example using an Arduino Uno board and a graphical programming tool called
Ardublock. Its a quick and dirty way of generating some simple control solutions, including
ones that talk to a PC via UART.

Programming is like MIT Scratch but targeted to embedded, eg. Arduino.

Timing accuracy is the xtal on the Arduino Uno board, so quite good for many applications.
You could time out to years using code if you wanted.

Seems to support quite a few IOT sensors, LCD, Multitasking, Servo, Accelerometer, A/D,
Temp, Pressure.....

Note this example could easily be expanded to triggered pulses, triggered pulse trains, and
or ones that respond to I or V via A/D in Arduino. Like controlling pulse width with I or V. I
am going to try it on ATTINY as soon as I get programmer up and running, but see no reason
it would not work on that as well.

Ardublock does not seem to have a lot of support, but schools are using with grade 8 and
above kids as a way of introducing programming. Neat thing about it is when you instruct Ardublock
to upload to Arduino it updates Arduino code window with generated code from GUI blocks side,
so that you can look at what some C looks like. There are limited videos, some blogs, going on.

Note will not turn you into an expert programmer in 10 minutes, there is work
and investigation involved, experimentation. But its not rocket science either.

Interestingly enough there is the capability to create your own objects in Ardublock.
Have not tried that yet but look forward to it.

upload_2019-2-14_10-58-14.png

Have fun, install is easy once you have installed Arduino. The jar file (Java) for Ardublock, and
install instructions here - http://www.carobot.cc/how-to/ardublock/
Note since this is open source you will see on web other jar files, but this is the
one I found with the most capability.


Regards, Dana.
 
Last edited:

Thread Starter

danadak

Joined Mar 10, 2018
3,569
The menu slections in left side give you an idea of multitude of objects for
programming and the 3'rd party add on sensors allowed.

upload_2019-2-14_11-15-33.png

Regards, Dana.
 

Thread Starter

danadak

Joined Mar 10, 2018
3,569
Here is another visual programming tool for Arduino, and I think possibly
ATTINY (I have to investigate further).

Snap4Arduino. Similar to ArduBlock, but with some different capabilities.

http://snap4arduino.rocks/

https://github.com/bromagosa/Snap4Arduino/wiki/Firmata-Modifications


The example code, blocks in middle window right hand screen, take the
Analog input for a pin and write its value to the PWM. As you can see
trivial to get this code "written", eg. just the drag and drop of some blocks
and you are done.

Maybe a minute of work.

So this application takes an analog value on a pin and controls a digital
output pin carrying a PWM signal on it, controls its duty cycle. I could
have used the servo block instead of the PWM and controlled a servo
position just as easily. Or I could have uses the tone block and controlled
freq on a pin, eg. a V/F converter like functionality.

upload_2019-2-21_17-8-0.png


Have fun.

This tool used by kids because you can use a joy stick or position sensors
and control a sprite on screen to make a game, or servos for robot applications.
There is a video on online of a teacher in India teaching his class how to use tool.


Regards, Dana.
 
Last edited:

BR-549

Joined Sep 22, 2013
4,936
Post #1.......the link for the link, to download proper file is a no go. Can one do a google and get correct file?

Do you have link to correct file?
 

BR-549

Joined Sep 22, 2013
4,936
It was the link link in post #1....Ardublock that 404 happened.

But I have it now.

I believe this is along the lines of some other chip's links that you have posted.

Cyprus or something. Their programming tools and such.

Are there others that you know of?
 

Thread Starter

danadak

Joined Mar 10, 2018
3,569
This tool is like ArduBlock and Scratch. ArduBlock for Arduino, Scratch for
PC.

ArduBlock and Snap4Arduino are open source, so there are various distributions with
various capabilities out there.

The Cypress tools, PSOC, basically programmed in C. But the differences are
large from Arduino, much more analog, routability, design permits everything
from gates to LSI functions......


Regards, Dana.
 
Last edited:
Top