A
GolamMostafa: there are four members in the struct --- three plain variables: pos, speed, y and one macro/function: MSGPACK_DEFINE(pos, speed, y). MSGPACK_DEFINE is a macro, and a macro is just text substitution performed by the preprocessor before the compiler ever sees the code, it does not inspect your struct, it does not know its layout, and it has no way to look at what members exist beyond whatever names you type between its parentheses. So basically when you write MSGPACK_DEFINE(pos,…
A
I've now used the new search several times since then and it really is a big improvement. However, I've see that it could be improved further. I wanted to search for a PM on a subject which was only tangentially related to a post I made and could only really give a data range and a few keywords. I did find the post eventually but a date range search as such does not really exist. I've checked on other specimen Discourse sites and it has not been implemented anywhere so I guess this will be a…
A
GolamMostafa: where I can ask all my basic questions about the I2C bus that I had for a long time. It depends on the questions that you have. A new topic with the questions that you have might better fit in https://forum.arduino.cc/c/projects/networking-protocols-and-devices/27.
A
39 years if you live in the US
A
ptillisch: How about here?: Much better! Some portions are still hidden, but after reading the seven exposed paragraphs, I gained new insights into the inventors and the difficult times they faced while resolving the technical challenges.
A
C'est effectivement une solution pour un proto, mais à mon humble avis, ça n'en est pas une si on veut réaliser quelque chose de définitif et surtout de facile à reproduire. La création du CI est un peu rébarbative mais quelle satisfaction de n'avoir qu'à installer les composants et réaliser quelques soudures pour que cela fonctionne. Les cartes protos, c'est bien mais toujours une chance sur deux d'avoir une soudure qui lâche ou un court circuit entre deux pistes. Olivier
A
//--- struct declaration---- struct Package_data { int32_t pos; int32_t speed; float y; MSGPACK_DEFINE(pos, speed, y); }; Package_data mcuData; //------------------------ Referring to the above struct taken from the sketch of post #1, I understand that there are four members in the struct --- three plain variables: pos, speed, y and one macro/function: MSGPACK_DEFINE(pos, speed, y). When I execute return mcuData in the sendStructData() function, are all four items transmitted, or only the…
A
Bonjour, pascal0171: tout est dit dans la doc... Je suis tout â fait d'accord, c'est même moi qui ai cité cette doc. Mais je rajoute un warning: Attention, cette doc s'intéresse aux onduleurs pour installation solaire. C'est à dire pour onduleur dont la source de tension est photovoltaïque et non le réseau ou une batterie. Donc à la base, la typologie est différente. Ce qui n'empêche pas que cela puisse fonctionner avec un transfo BF si on a un bon filtre. Quand à vos infos @le_viking pour mon…
A
le_viking: Non un seul enroulement 1 seul transistor que ce soit BF ou HF la perte de rendement est lié au fait que le courant aille dans un seul sens, La bobine ne fournis pas un courant inverse, lorsque la tension est à l'état 0V ? jef59: Pourquoi je m'escrime à trouver une solution fiable pour filtrer et transformer le SPWM HF en sinusoïde 50Hz? Tu n'utilise pas le schéma de @ocoquet91 qui envois directement le 15KHz au primaire ? tu envois une sinusoïde 0-12V à 50Hz ?
A
@xfpd Note that @7mju6tre is using a Uno, so what you say regarding the need to disable all Serial comms is not true because theUno does not have native USB unlike the board that you are using
A
jef59: Ensuite, autre incongruité, P= RI², avec un transfo au primaire de 12V, ou de 6V comme proposé par je ne sais plus qui, en comparaison à un primaire de 230V, dans le second cas, pour la même puissance I est 230/6=39 fois, cela réduit considérablement les pertes. Si j'ai bien compris: ~ il ne faut pas utiliser le secondaire d'un transformateur pour diminuer les pertes. Si on ne peut rien mettre en sortie, pourquoi prendre un transfo? Autant ne rien mettre du tout. ~ pour diminuer les…
A
stitech: thought of checking the button itself The issue was happening even without the button as explained
A
sterretje: The alternative is to use strtol. +1 C's atoi() and atol() have long been known to lack error handling, and strtol() is the documented replacement. The C standard actually does not require atoi() to set errno, and if the result cannot be represented, the behavior is undefined. This is fully documented. Diligent and careful programmers know that. When atoi() was first introduced in the early days of C in the 1970s, computer resources were extremely scarce. Because atoi() skips error…
A
xfpd: I "solved" my problem... on another topic... by using #define..#ifndef..#endif You might be interested in this alternative approach to disabling Serial communication code in a sketch: Sharing Debugging Techniques Programming The system I use: Add this code near the top of your sketch: #define DEBUG true // Set to true for debug output, false for no debug output. #define DEBUG_SERIAL \ if (DEBUG) Serial Then use code like this to initialize the serial communication:…
A
SQLite3 engine is imported to the codebase: sqlite3 API is available in two flavors: native sqlite3 functions and SQLite3 class.
A
How about here?: https://web.archive.org/web/20261105152205/https://bits-chips.com/article/45-years-after-the-i²c-patent-the-story-behind-the-two-wires/
A
Something I forgot to mention is the "Image" Dashboard Widget: https://docs.arduino.cc/arduino-cloud/cloud-interface/dashboard-widgets/#image This widget allows you to place any arbitrary image on your dashboard (note that this is not an image sent by the Thing). You could get quite creative with using this Widget to enhance the aesthetics of a Dashboard. You could get even more fancy by using the "Image Map" Widget: https://docs.arduino.cc/arduino-cloud/c…
A
ptillisch: Are you still unable to access it? I ave just tried now, and I cannoy access the site. This is the message fromthe browser: This site can’t be reached bits-chips.com took too long to respond. Try: Checking the connection Checking the proxy and the firewall [Running Windows Network Diagnostics](javascript:diagnoseErrors()) ERR_CONNECTION_TIMED_OUT
A
replaced link. I did not get that alert.
A
GolamMostafa: I have thought that the linked document of post #1 is an article outside from NXP. That is correct. Are you still unable to access it? If you can't access the content on the source site, you can try the Wayback Machine link I provided again. I just checked and it is working for me. kmin: likely i2c story continues for a while.. I think we can be confident of that. A Qwiic connector is now standard on official Arduino boards, making it easy to connect peripherals to the I2C bus.…
A
That means your board is not seen by PC neither on COM Port nor on WiFi network. So, follow what @ptillisch as advised in post #3.
A
Uhh I have tried it like 9 times
A
A: Objecives: 1. Creating and running mult-tasks under Zephyr RTOS 2. Sending struct type data from MCU to MPU using Router Bridge 3. Exchanging messages between MCU and MPU 4. Exchange signals between tasks/threads via semaphore B: Program Logic: 1. MCU waits executing its code until Linux-MPU has started. 2. MCU keeps blinnking LED3_R as a thread/task outside its loop() function 3. MPU sends request signal to receive data from MCU 4. MCU blinks LED4_G for two times as a thread. 5. MCU sends…
A
Note: I got the following warning when I opened this topic
A
It is how atoi works; not only in the Arduino world. You'll have to scrutinise the input before passing it to atoi. The alternative is to use strtol.
A
Post a simple schematic showing exactly how you connected the LEDs, it is possible you damaged your computer. The schematic will help determine what you did or did not do to damage it.
A
This was super helpful for figuring how to run python outside the container. I've created GitHub repo capturing and updating a few of the steps. Tested on my Ventuno. https://github.com/rcpeters/native-python-arduino-q Thanks!
A
GolamMostafa: castillog: If the bridge cannot be used with threads then I will go a different route with the code structure. Theoretically, it should work. The challenge will be making it work in practice. I hope the panel experts will provide the necessary assistance. This is the multi-task version of the single task version sketch of post #17, which sends struct data over Router Bridge from MCU to MPU. Sketch: #include <Arduino_RouterBridge.h> bool status = false; String value = ""; unsigned…