Author Topic: graphic interface programming ?  (Read 2348 times)

0 Members and 1 Guest are viewing this topic.

Offline stefan_trekkieTopic starter

  • Contributor
  • Posts: 36
  • Country: bg
graphic interface programming ?
« on: December 23, 2019, 12:41:33 pm »
Helloo .. I am new to the forum. I've watching Dave's videos from very long time.
Right to the question: Is there a graphic interface to write programs for simple micro controllers (8-16 bits).
What i mean is something like that people use for PLC programming, not the code itself.
Here is the story .. I work and have worked with industrial machines for more then a decade now. Often i need to upgrade some old machines, to smooth out the hardware mechanical process in them with some algorithm for better and smooth work.  And have used some PLCs and analog electronics as well. And pre programmed micro controllers too ..  But i can't in this moment program micro controller from scratch .. So, that is what bugging me, i hate to don't know  :--
I have some very basic skills in C++ and "Basic" language itself and can you use any language for MCs ? .. But i don't know how to connect what i am writing to the chip. I have knowledge how to program some micro controllers manually on the board. It may be stupid and easy but that is me  :popcorn:
I have used the searching option in the forum and found 1-2 interesting topics on the basics and reading now.. 

p.s. Sorry for my not so good English

« Last Edit: December 23, 2019, 02:15:15 pm by stefan_trekkie »
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2332
  • Country: 00
Re: graphic interface programming ?
« Reply #1 on: December 23, 2019, 08:28:55 pm »
 

Offline jhpadjustable

  • Frequent Contributor
  • **
  • Posts: 295
  • Country: us
  • Salt 'n' pepper beard
Re: graphic interface programming ?
« Reply #2 on: December 23, 2019, 08:31:42 pm »
Quote
Is there a graphic interface to write programs for simple micro controllers (8-16 bits).
Of course, it depends on what sorts of things you want to do. Usually, people start with the Arduino boards, IDE, C++ libraries, and bootloader, which together provide a simple end-to-end system to get from your idea to the pins. As you advance, you can slide away from the Arduino comfort zone and begin to exercise advanced features of the chips, use other chips/boards, etc.

Quote
can you use any language for MCs
Theoretically, yes. Here's a ladder logic editor/compiler for PIC and AVR: LDmicro
"There are more things in heaven and earth, Arduino, than are dreamt of in your philosophy."
 

Offline thm_w

  • Super Contributor
  • ***
  • Posts: 9839
  • Country: ca
  • Non-expert
Re: graphic interface programming ?
« Reply #3 on: December 23, 2019, 09:47:45 pm »
https://www.mikroe.com/necto

I think OP is talking about writing a program not creating a UI.

Anyway, Dave has mentioned Scratch a lot, might be too simplistic if you already know c++ though: https://maker.pro/arduino/tutorial/how-to-program-an-arduino-with-the-scratch-programming-language-using-mblock
« Last Edit: December 23, 2019, 11:09:11 pm by thm_w »
Profile -> Modify profile -> Look and Layout ->  Don't show users' signatures
 

Offline nfmax

  • Super Contributor
  • ***
  • Posts: 1692
  • Country: gb
Re: graphic interface programming ?
« Reply #4 on: December 23, 2019, 10:31:35 pm »
If you are able to use a 32 bit ARM-based single board computer like a Raspberry Pi or a Beaglebone, rather than a 'bare chip' 8 or 16 bit microcontroller, you should take a look at Node-RED https://nodered.org. This is a graphical flow-based programming environment, with a huge library of core and contributed 'nodes' for many applications, including communicating with PLCs, and driving GPIO pins directly. It was originally targeted at acting as 'glue' between other systems that do not natively talk to each other, but can do much more. If you can't find a node to do exactly what you want, you can use a 'function node' to effectively write your own (in JavaScript). It's free, open-source, and is now an OpenJS foundation project: it was originally developed by a couple of engineers at IBM, who are still the principal maintainers.
 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2332
  • Country: 00
Re: graphic interface programming ?
« Reply #5 on: December 25, 2019, 04:53:11 pm »
For Arduino have something on this philosophy

https://www.visuino.com/
 

Offline emece67

  • Frequent Contributor
  • **
  • !
  • Posts: 614
  • Country: 00
Re: graphic interface programming ?
« Reply #6 on: December 25, 2019, 08:39:53 pm »
.
« Last Edit: August 19, 2022, 02:43:27 pm by emece67 »
 
The following users thanked this post: ebclr

Offline stefan_trekkieTopic starter

  • Contributor
  • Posts: 36
  • Country: bg
Re: graphic interface programming ?
« Reply #7 on: December 26, 2019, 10:23:46 am »
Thank you all for the replays.

Quote
which together provide a simple end-to-end system to get from your idea to the pins
This is exactly what i ask for .. It seems that i lack the knowledge to tight everything together.

Quote
Dave has mentioned Scratch a lot, might be too simplistic if you already know c++
Knowing implies that i master it but i am not.. I have done some basic programs with it to use on the PC (calculators and stuffs or high power electric)
I am fluent in in the old timers "vintage Basic" .. The stupid thing is that is so comfi with that number lines and when i am trying to do something on C++ it's get confusing with complexity of the program.

Quote
Raspberry Pi or a Beaglebone, rather than a 'bare chip' 8 or 16 bit microcontroller,
I was hoping to be 'bere chip' because i can insert it in the PCB with another stuff and a socket to do the job .. But if i have space is OK

Quote
For Arduino have something on this philosophy
https://www.visuino.com/
This is .. Perfect
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 10088
  • Country: us
Re: graphic interface programming ?
« Reply #8 on: December 26, 2019, 03:57:24 pm »
Visuino looks quite interesting but if getting down to bare metal is a goal, Visuino is a leap in the wrong direction.

Arduino libraries are written in C++ but most user applications are written in C - that is, they don't use any of the advanced features of C++.  Nor is there any need for those features, whether you use the Arduino libraries or not.  Common, everyday, C is sufficient.

Embedded programming is a mix of hardware and code - both pieces need to be well understood.  The advantage to starting with Arduino is that there is a LOT of code on the Internet.  Everything that can possibly be done with the Arduino has already been done and it's all out on the net.

All of the Arduino library source code is included with the distribution.  You can spend days looking through the code to see how certain functions work.  The libraries ultimately get down to bare metal and simply provide a simplified user interface for the higher level code.

When you program the Arduino, you are a long way from bare metal but at least one variant of the UNO uses an interchangeable DIP package.  You can program the chip in the Arduino board and move it to your application board.  Or, you can just plug an entire Nano into your project.  I usually try to build projects by plugging in these 'stamp' format boards (like the Arduino Nano).  It saves me a lot of design and PCB work, especially the serial port and bootloader.

You won't get far without learning C and you still won't get far until you have written thousands and thousands of lines of code.  It simply won't come any faster for you than it did for anybody else.  You just have to jump in and start making mistakes.

Here is a video about using just the ATmega328 without the Arduino board.  Maybe it will give you some ideas:


 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->