A
Ciao a tutti, Mi chiamo Giovanni e sono di Reggio Emilia. Sono un ventenne diplomato al liceo scientifico e ho pochissime basi di programmazione e circuiti elettrici. Mi è sempre interessato però il mondo della programmazione così mi sono comprato lo starter kit di Arduino pensando che non fosse poi così difficile. In realtà sto riscontrando varie difficoltà nonostante la quantità infinita di video su Internet di Arduino non mi è ancora chiaro il linguaggio. Mi sono iscritto a questo forum…
A
Please post your modified .json file
A
xfpd: Arduino use only eight bits for PWM, so whether controlling WS2812 or MOSFET, there will only be 256 steps the 8 bits per color of the WS2812 are because of the internal chip of the strip, not because of the resolution of arduino. For the mosfet control, that's why i got a pca9685, which is a 12-bit pwm generation module. esp32 goes up to 16 bit resolution i think
A
jim-p: Then all you need is the level shifter I mentioned. are you sure? when i say i'd like to work with what i have, i also mean the arduino nano. the confusion must have happened because i said i'll upgrade to IoT with esp32 later, meaning i'll use the esp32 altogether later. my bad. having that in mind, do you find my diagrams complete, or have i not included something important or of detail?
A
Non ça ne fonctionne pas sur uno et oui c’est le même langage - du C++ mais c’est juste que les règles de compilation sur UNO sont plus relax que sur esp32 donc il laisse passer des trucs que l’ESP32 ne laisse pas, mais ça ne rend pas le code correct.. Vous devriez aussi activer tous les warnings das les préférences de l’IDE.
A
Well, I tried to modify the JSON file and save it, but nothing happened. I'm trying to change the function/method names because my student does not even see the names using that shade of yellow. I'm trying to make this change for him so every source file uses the changes. When I make the changes, they are not reflected in the currently-loaded source code. I'm not sure I have the block above moved to the "right place" in the JSON file.
A
royal_ck: how could i fix it? In MsPaint, save as PNG or BMP. In GiMP >> IMAGE >> FLATTEN xfpd: g Arduino Nano PWM The Arduino "Secrets of PWM" page is very good at explaining what it is, then giving a sketch for practice. PWM is how you will control the MOSFETs. Arduino use only eight bits for PWM, so whether controlling WS2812 or MOSFET, there will only be 256 steps. Perhaps ESP32 has finer granularity (I think they do 4096 steps... but that might be AIN only... I would have to read more…
A
Merci beaucoup pour ce correctif. Je vais mettre en pratique la chose rapidement. Cependant il me semble qu'un UNO ou un ESP32S3 fonctionnent tous deux dans le même langage. Pourtant ici, ce qui fonctionne sur l'un ne fonctionne pas sur l'autre. Ça me semble étonnant. ( C'est juste pour ma culture personnelle )
A
Yes, assuming OP has the pictured module with JD-VCC jumper (removed).
A
5 pastilles pour être compatible avec plusieurs types de potentiomètre ajustable. il faut mettre à jour le schéma pour utilisation des autres potar en sortie. pourquoi le centre des pastilles est plein? ça ne facilite pas le perçage une fois le circuit gravé... ça me rappelle mes premiers circuits faits (il y a 40 ans) à la peinture et au pinceau fin un circuit comme ça, je le fais au véroboard.
A
Then all you need is the level shifter I mentioned.
A
Wawa: Ground to the Arduino is not needed and it defeats opto isolation. You are correct but everything else is OK, right?
A
That diagram is incorrect. Ground to the Arduino is not needed and it defeats opto isolation. The opto LEDs are powered between VCC and the relay board inputs. No ground involved.
A
Thanks sonofcy! I'll give this a try. If there are any issues, I post those here.
A
If you actually want to use function pointers, but some of those functions are actually methods, then one way is with a non-capturing lambda. Some extra punctuation, but much easier than extracting and using the bits manually. A contrived example auto useDec = [](long x) { return Serial.println(x); }; auto useHex = [](long x) { return Serial.println(x, HEX); }; void setup() { Serial.begin(115200); } void loop() { static int count; auto useNumber = random(2) ? useDec : useHex; count +=…
A
xfpd: the images are "transparent" just checked it out: there is a button (second top-right) that opens the image in a second tab and is with white backround
A
oh yeah, that's my other post. I think i didn't give an informative answer to that (if i gave any answer). So sorry about that! Answering to your previous message, I want to continue with what i (fortunately or not) have already bought, and when i have more time i'll upgrade to IoT with esp32. when you say it will require building some small electronic circuits, do you mean something more or different than soldering on perfboards, like pcb? If yes, can it be avoided? (also, wanted to mention…
A
If I do use the master for the sound I could use some coding similar to this ... IF player_is_correct THEN play_file = random_number(1, 400) trigger_mp3_play(play_file) ELSE IF player_is_incorrect THEN play_file = random_number(401, 800) trigger_mp3_play(play_file) stops the same sounds for repetitively being played over and over again ... so it will randomly play a file between 1-400 for a correct answer and 401-800 for an incorrect answer! need to think --- do I really need individual…
A
xfpd: the background is translucent black, making viewing less than optimal. oh, oops. how could i fix it? xfpd: Was continuity or something else missing from your other topic of the same subject? i had thought way less of the project, didn't have diagrams and also the post had taken a different direction from the help i needed, so i thought a fresh start would help. xfpd: Also, in the other topic you were asking for your code to be written for you. Did you read about using Arduino Nano PWM…
A
See this: Beginner looking for help: Controlling rgb LED strip with arduino nano General Guidance Yes and no to all questions depending on your ability to solder together small circuits and your understanding of Arduino code. There are many way to accomplish your objectives. If you are happy with the way the PCA9685 works, then you can still use it with an ESP32 with an I2C level shifter. All other options will require building some small electronic circuits. Don't cry yet! Let me know which…
A
I was always sure that the slave buzzers would be the ones playing the sounds ... never considered that the master could do the job ...but this opens options, if the master could control all the sounds ... only one dy-hv20t module needed, only 1 sd card and no need to buy 10 indivdual speakers .... any thoughts ??? #
A
Ovviamente, ma... Basta la scritta?...
A
Wawa: Watch the tutorial first. will do ... just getting sound sorted first ..
A
Referencing the topic of this title, and my suggestion for avoid using external, personal, possibly volatile, web pages for reference and validation... I just want to show the balance is more favorable toward Arduino doing their own work. More often than not, others link data FROM Arduino official documents, for example, the IRremote author discussing PWM: Secrets of Arduino PWM
A
Perché Arduino non pubblica una pagina nel suo github per dire quali librerie sono compatibili e quali no, come ha fatto per Arduino R4? E perché non si adopera a portare librerie incompatibili all nuova piattaforma hardware. come per esempio la libreria servo che ha rifatto ex novo? E al momento è l'unica e la sua esistenza non viene neanche documentata da nessuna parte. Se provate librerie per i2c di solito fuonzionano (BMP280, BME280, Adafruit SSDf1306 per esempio) o SPI (Hoperf RFM85W...)…
A
ptillisch: My primary usage is for research Mine is for making maps for text based ILS flight sim for Nano/Nesso/ATtiny85...
A
Maybe try to reinstall windows and then check
A
lattitude: What I mean is there maybe a couple of 1 second intervals every few minutes. ie. ON (1 sec) OFF (1 sec), ON (2 sec), OFF (1 sec), ON (1 sec), OFF (2 minutes) That's fine, it doesn't fry your relays. But what is your test load? And is it really 30VAC?
A
Well then that is why it works for you but @freho must have a voltage less than Vih, which for the R4 is 0.8*5V