Arduino driver and replication

  • 1.4K Views
  • Last Post 29 February 2024
Jagau posted this 12 July 2023

As some parts are still back order, I made a polyphase transformer like the Doc's with a potcore.

 Instead of using an FG, I'm learning programming for the beautiful Aduino Uno R4 ,wich is the new one, it  looks awesome and I'm going to activate the mosfets powered with this little marvel when I figure out C+ programming instead of an F.G.

For those familiar with Arduino IDE let me know.

This is the one i am talking about:


Jagau

Order By: Standard | Newest | Votes
Jagau posted this 12 July 2023

As some parts are still back order, I made a polyphase transformer like the Doc's with a potcore.

 Instead of using an FG, I'm learning programming for the beautiful Aduino Uno R4 ,wich is the new one, it  looks awesome and I'm going to activate the mosfets powered with this little marvel when I figure out C+ programming instead of an F.G.

For those familiar with Arduino IDE let me know.

This is the one i am talking about:


Jagau

Fighter posted this 12 July 2023

Hi Jagau,

If I may, I would suggest to use C# instead of C+. You will see C# is more friendly and more easy to learn.

I searched on Google and  I found some example here:

https://www.instructables.com/Interfacing-your-arduino-with-a-C-program/

If you need any books or references about C#, both me and Cd_Sharp are using it at work so feel free to ask us.

Of course it's just my personal opinion, whichever programming language you decide to use I'm sure the board will function flawless. Arduino is a solid platform with a lot of history.

Edit: one correction/clarification about using C#, I was thinking about the scenario of commanding the board from PC using a Windows application written in C# (the example in the link above); for writing the code and compiling it directly on the board the C++ language is the only option.

More details in this discussion:

https://forum.arduino.cc/t/is-it-possible-ti-use-c-to-program-the-arduino-bo/39896

Regards,

Fighter

"If you want to find the secrets of the universe, think in terms of energy, frequency and vibration."
Nikola Tesla
Jagau posted this 12 July 2023

Ok thank fighter

would you please read the overview on Aduino site here:

https://arduino.github.io/arduino-cli/0.33/sketch-build-process/

and decode for me that, i am not sure if it is C++ or C   must be used ????

C# give no document on arduino site i am confuse.

Explain to me wiich is the right one to use, thank you

Jagau 

 

Jagau posted this 12 July 2023

I just asked the question on the Arduino forum here is what the system answered me"

The IDE is a development environment that combines a text editor and access to the compiler, linker, and uploader in an easy to use method. The language used to program the Arduino is C++. 

C++ is a superset of C, adding classes and changing the behavior of strcuts in subtle ways. The biggest advantage is that C/C++ is the only language you can program the Arduino is (except assembler, if you are really strange).

Jagau

Fighter posted this 13 July 2023

Yes, seems the board have an IDE:

https://docs.arduino.cc/software/ide-v2

This one should be installed on the computer you gonna use it to communicate with your board.

These are the steps on setting it and get it ready to write your own code:

https://docs.arduino.cc/tutorials/uno-r4-minima/minima-getting-started

From that IDE you can install libraries on your board (ready-made code) which you can use in your code:

https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-installing-a-library

What I meant (in the "Edit" part of my comment) is: after you build and compile your C++ code directly on the board and that code is already running on the board you also can use C# to communicate with the board and for example change the parameters of what's already running on the board.

Let me give an example.

In C++ you write some code to blink a LED at 10 KHz and 5% duty-cycle. In order to modify the frequency and duty-cycle you should stop the code what's already running on the board and modify de code for the new frequency and duty-cycle and then compile the changed code and run it again.

But there is another way. You can write your code so it can receive the new values for frequency and duty-cycle dynamically from your computer from a interface/utility written in C# like in the example from my previous post:

https://www.instructables.com/Interfacing-your-arduino-with-a-C-program/

So in the interface/utility you build on your computer using C# you just write the new values for frequency and duty-cycle in two text boxes, press an Send button and the utility will send (through the serial port) to the C++ code running on the board the new values for frequency and duty-cycle.

This way you don't need to stop the C++ code running on your board, modify it (to set the new frequency and duty-cycle values) and then compile it and run it again.

I don't know if I explained it well.

You can have two parts:

  1. The C++ code running on your board (which is blinking the LED)
  2. The C# interface/utility on your computer which is sending to the C++ part the frequency and duty cycle it should make the LED blink at.

Basically the compiled C++ running on the board is the worker (the one actually blinking the LED) and the compiled C# running on your computer is telling to the C++ code at what frequency and duty-cycle to blink the LED.

I would suggest to create a new thread in the Hardware section to not mix the content here with your SEC tech experiments. I can move the related posts above in the new thread.

Fighter

"If you want to find the secrets of the universe, think in terms of energy, frequency and vibration."
Nikola Tesla
Jagau posted this 13 July 2023

Ok for the explanations, I am slowly beginning to understand this new tool.

I think you should create this new thread which would be very useful for all researchers here and as I am not knowledgeable enough in this field you could create it, move some info from here to this new thread and inform those who want to know about Arduino programming, which has a lot of very interesting projects related to electronics.
thanks for your help.
Jagau

Fighter posted this 14 July 2023

Hi,

As Jagau requested I created this thread and moved here the posts related to his Arduino MOSFETs driver project from his Spatial Energy Coherence circuit thread.

Jagau, sorry for the delay, yesterday was a very busy day at work.

The thread is yours. 🙂

Regards,

Fighter

"If you want to find the secrets of the universe, think in terms of energy, frequency and vibration."
Nikola Tesla
Jagau posted this 14 July 2023

Thank you Fighter
The deadlines are not important, the family first, the work after and the pleasures then, that's how you have to see it.
Those who have interesting projects will be able to add them here, I will share those that I am to do, thank you for your help that we believe that everyone will appreciate and will be able to discuss them together.

As for the discussion, you and CD will surely take part in these Aduino projects as a reference person for programming.


Jagau

AlteredUnity posted this 14 July 2023

Aren't you able to use python code for arduinos? I'm familiar with C and C++, but thought I learned python specifically for arduino, can't be sure though.

Jagau posted this 15 July 2023

The arduino site tells me that we can also program with microPython if you wish,

 see the arduino site for more details here

https://docs.arduino.cc/micropython/?_gl=1*1nyuo7e*_ga*MjEzNzQ4ODU1NC4xNjg5Mzc4NTY3*_ga_NEXN8H46L5*MTY4OTM3ODU2Ny4xLjEuMTY4OTM3ODk5MC4wLjAuMA..

And in the arduino forum here

https://forum.arduino.cc/t/what-is-the-difference-between-c-arduino-c-and-c/291839

C++ is a lower level language that gets you closer to the hardware

Jagau

 

baerndorfer posted this 15 July 2023

you can get your programming done by AI. It sounds crazy, but if someone has knowledge in electronical systems he can get results very fast from chatGPT. it will save you lot of time. 

i use it for writing code on arduino, esp32 and raspberry Pi. if you work on linux you will love the python scripts that chatGPT can make for you.

some weeks ago i did my subscription to get access to the advanced language model GPT4.

the amazing thing is, that for an AI the term 'overunity' is not something that can not be! 😎

it will clearly tell you what conditions can result in an overunity scenario. but you have to ask very precise. so the more you know about a subject, the more accurate and better outcome you will generate from these AI systems.

please give it a try! i know that it will work for you.

regards

B

 

Close