FC components and AI (ideas?)

Post and discuss new components that you have created.
Post Reply
MJU20
Posts: 356
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 103 times
Been thanked: 71 times

Flowcode v10 FC components and AI (ideas?)

Post by MJU20 »

We can no longer ignore the fact that AI has become a powerful tool.
This is also true for electronics people :-)

It now seems to me that we can also expect an increase in the creation of components for Flowcode.
Before AI, I used to read datasheets thoroughly to understand how to communicate with a new component using, for example, SPI or I2C.
Now, I simply ask an AI robot.

As an example, I took the datasheet of a (simple) component: the 24AA00T-I/OT I2C EEPROM.

In the past, you’d read through the documentation and note which commands the component expected in order to function.
Now, I paste the datasheet and immediately ask what command I need to send to use the component.

I ask, without too much beating around the bush, which commands I need to use to write a value to the EEPROM or to read one.
AI then gives me a clear sentence listing the commands I need to let Flowcode generate in order to make it work.

What are your thoughts on how we can use AI in Flowcode or in electronics as a job or a hobby?
Where do you see areas for improvement?
Should Matrix use this as a standard feature to quickly create components?
Can we, as customers, use this ourselves?

I just want to hear all your ideas and thoughts.

SpeedPIC32
Posts: 286
Joined: Thu Dec 10, 2020 2:35 pm
Location: Germany
Has thanked: 39 times
Been thanked: 18 times

Flowcode v10 Re: FC components and AI (ideas?)

Post by SpeedPIC32 »

Hello,
I am currently experimenting with Gemini.
It works well if the question is specific enough. You tell the AI that you are working with Flowcode 10xx, which PIC is being used, and which AD converter should be operated, for example, and the nice thing is that you can create macros and the AI gives you, for example, the hex code of the specific commands in the correct order. If there are errors, solutions are offered based on a current data sheet. The company Mikroelektronika offers the Necto Studio programming environment.
AI is integrated into it. You can try it out. It works quite well for the C language.
Best regards to you all, including the AI. :lol: :lol: :lol:


Translated with DeepL.com (free version)

mnfisher
Valued Contributor
Posts: 1690
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 146 times
Been thanked: 788 times

Re: FC components and AI (ideas?)

Post by mnfisher »

There are still some very disturbing 'errors' in the output.

Sometimes the results are very good - and others - not so much. For example - I asked which pin to use for an interrupt - and it gave the wrong one, and then argued that I must be using an out of date datasheet (and old silicon). When I asked it for a link to the 'new' datasheet - it gave a link to the same one and even after I clipped and uploaded the relevant pin-outs section it still maintained that I was using an old datasheet.

So - still need to tread with care :-)

It is getting better remarkably quickly though - and when it's on form it can be impressive!

Bijumon
Posts: 25
Joined: Fri Dec 30, 2022 11:44 am
Has thanked: 2 times
Been thanked: 9 times

Re: FC components and AI (ideas?)

Post by Bijumon »

Hi everyone,

I'm excited to share a Simplest ESPNow component I've created with the significant assistance of Gemini AI,
I am not a C coding expert and built this component from zero prior knowledge of C programming.
The entire foundation of the C code was generated with the help of Gemini AI.
I used an iterative process of testing the code in Flowcode, feeding back the errors and required features to the AI,
and repeating the cycle until the component was stable and fully functional.
This shows what's possible even if you're not a developer!
All the core C code for ESPNow functionality is contained in the Supplementary Code section.
Please note that I have specifically tested this component only on the ESP32 Wroom 32 module.While hope be compatible with other ESP32 variants.


Available Macros
Initialize : Initializes the ESP-NOW environment(sets up Wi-Fi in Station mode and the ESP-NOW driver).
GetMyMAC : Retrieves the local device's MAC address. The address is returned as a colon-separated string (e.g., "AA:BB:CC:DD:EE:FF")
SendString : Send a string of data to a specific peer. Use the peer's MAC or "ff:ff:ff:ff:ff:ff" for broadcast Mode (will send the message to all ESP-NOW enabled device set up as a receiver). the maximum data size is 232 characters.
CheckForIncoming : Checks if a new ESP-NOW packet has been received. Returns 1 if new data is available. The flag is automatically cleared upon checking.
GetSenderMAC : Retrieves the MAC address of the device that sent the last message. The address is returned as a colon-separated string (e.g., "AA:BB:CC:DD:EE:FF")
GetReceivedData : Retrieves the data payload of the last message as string. the maximum data size is 232 characters.
GetReceivedDataLength : Retrieves the byte length of the last received data.

Bijumon
Attachments
ESPNowV1.fcpx
(3.86 KiB) Downloaded 17 times
ESPNowV1.fcfx
(20.67 KiB) Downloaded 25 times

Bijumon
Posts: 25
Joined: Fri Dec 30, 2022 11:44 am
Has thanked: 2 times
Been thanked: 9 times

Re: FC components and AI (ideas?)

Post by Bijumon »

Test Files....
Attachments
Screenshot 2025-10-19 194225.jpg
Screenshot 2025-10-19 194225.jpg (70.97 KiB) Viewed 2317 times
ESPNow_Sender_Test.fcfx
(8.88 KiB) Downloaded 14 times
ESPNow_Receiver_Test.fcfx
(14.93 KiB) Downloaded 17 times

BenR
Matrix Staff
Posts: 1985
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 523 times
Been thanked: 709 times

Re: FC components and AI (ideas?)

Post by BenR »

That ESP Now component looks great and AI is certainly looking promising. Having started using it fairly recently it's done things for me in 10 minutes that I would have spent days toiling over in the past and added features I hadn't even though of. Doing things in small steps and testing each step is the key. Saying this i'm out of my comfort zone relying on a tool like this but it is very impressive.

As for adding into Flowcode. well the way Bijumon has done it is certainly a great approach. You could include an external .c and .h file if you didn't like being constrained to the supplementary code window and this way the AI can directly be in charge of the .c and .h files without a load of copying and pasting. Doing this way though the component is less portable so eventually wrapping up into supplementary code once it's stable is a good idea.

As for other things I think it will be very hard for us to replicate the type of functionality in packages like cursor and vscode so maybe we just make it easier to reference external code created by a third party tool. For example a way to include external files without having to hand code include statements and then a way to scan the external files for variable/function references for easy inclusion into the main flow chart without having to resort to C icons.

I think this could be very powerful but what do you all think we should be doing?

jgu1
Posts: 844
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 738 times
Been thanked: 186 times

Re: FC components and AI (ideas?)

Post by jgu1 »

Hi Ben!


In my opinion it would be great if you could get AI to help with Flowcode. I know some Aduino IDE freaks who use AI, and they are very happy with it :D

Br Jorgen

celebriums
Posts: 52
Joined: Fri Dec 18, 2020 7:33 am
Location: Turkey
Has thanked: 25 times
Been thanked: 13 times
Contact:

Re: FC components and AI (ideas?)

Post by celebriums »

Hello everyone,

I’m really glad to see this topic here.
I’m currently working on an energy measurement project using the ATM90E26 and wanted to share a few thoughts with you:

I’ve been testing Google’s new assistant, NotebookLM, for the past couple of days.

You can upload datasheets, and it explains everything step by step — almost like a teacher.

It summarizes new component research extremely fast.

It’s honestly a very educational and enjoyable tool.

I believe Flowcode should have an integrated AI assistant similar to ChatGPT.

With such an assistant, coding would become much faster and more accurate.

It would especially help new users understand and build projects more easily.

Right now, creating new components in Flowcode feels quite complex.

The interface is powerful, but this part could definitely be simplified.

It would also be great if header and project files from GitHub could be imported directly into Flowcode.

That would make experimenting with and adding new libraries much easier.

In conclusion:
I think integrating AI systems like NotebookLM and ChatGPT into Flowcode is no longer optional — it’s the next logical step.
Such an improvement would make Flowcode faster, smarter, and far more user-friendly. 🚀



https://notebooklm.google.com/
Sadık Süme

Post Reply