7 votes
Accepted

How to sense snow and ice?

If the pavement is black, you could detect snow by infrared reflectivity. You might detect wet by resistivity. That leaves ice. Reflectivity might work there, too, at a different threshold. You'd need ...
  • 14.5k
3 votes

Ultrasonic sensor underwater calibration

If I understand your question correctly, your problem is probably that the working range of the AJ-SR04M sensor is 20cm - 500cm. The sensor uses the same transducer to create the sound pulse and to ...
  • 1,033
3 votes

How to sense snow and ice?

I may experiment with a simple photocell used to turn lights on or off, and a light source for night time. Mount the photocell so that its lens is upwards towards the sky, at night you'd need a light ...
2 votes

What isthe best programming language for embedded systems?

Before your question gets closed: There is no such thing as "the best" Assembly Assembly can be a very powerful language. But at the cost of some: Assembly is different per machine. https://cs....
  • 2,696
2 votes

How to programmatically choose "board model" and "port number" in Arduino IDE?

You can't in the Arduino IDE, it's not designed that way (you can't even have different board/port settings in different windows - it's stored in the Java equivalent of a single global). Instead you ...
  • 103k
2 votes
Accepted

Reproduce simulated temperature data with Arduino

You can use an array to go through the times. Create a struct with the fields time and temperature (you should think about saving time as unix epoch, meaning seconds since 1970, so that you save ...
  • 14.2k
2 votes

How to check if all pins are connected on my board to make sure Arduino sends the correct pattern number on my tool

As mentioned in a comment, your code has some fundamental flaws. Do not call loop() from within loop()! Aside from the code errors, your question has a legitimate element. Testing the tri-state ...
1 vote

Machine installed with arduino suddenly turns on when usb is unplugged

Do not call loop from loop. You will quickly run out of RAM and the sketch will crash: void loop(){ int recipe; //Serial.print("Enter recipe number: "); while(Serial.available()==0){ // ...
  • 35.4k
1 vote

How to rotate servo every 12 hours using RTC module?

You have to spend some time and practice coding, it does not come over night. As far as your timing look up for an alarm clock sketch that will do what you want. Once you understand that you should ...
  • 1,506
1 vote
Accepted

Can I integrate Arduino in a CI/CD setup?

There are different approaches around. I can only point you to some of them: GitLab CI approach A GitLab CI approach B Your specific solution: To build pipelines for Arduino (although its Azure) but ...
1 vote
Accepted

Can I emulate Arduino in a headless CI/CD setup?

The problems with this kind of software is: always behind the recent releases of cores/ hw variations. reliable only for simple programs/tasks Imho all the products I tested (mainly on Win) are ...
1 vote

ColorPal Sensor

In parseAndPrint You need to check the return value of sscanf to see if the function read the data. The problem you are having is the difference between + and &. The sensor is providing 3, 3 ...
  • 5,596
1 vote

Can I connect to a DALI network as a master node using an Arduino?

I have made a simple DALI controller with Arduino Nano. Maybe it will be useful for you. Look here: Simple DALI Controller
  • 11
1 vote

Using a relay to control a lamp

Unless you feel like starting a fire, none. Find a 220V 2A relay with a 5V coil and use that instead, switching the hot wire and not the neutral.

Only top scored, non community-wiki answers of a minimum length are eligible