How to encode & decode JSON data in Arduino for IoT
Electro Tech Online » Arduino
by Aimee Kalnoskas
3M ago
JSON and XML are the most common data serialization formats. The Internet is a hub of billions of different devices, applications, and services. These devices and applications are built in different programming languages and around diverse platforms. For all these entirely different devices and applications to effectively communicate with each other, data is serialized and de-serialized at the endpoints in a format that is shareable. JSON and XML are the two most important markup languages... Read more ..read more
Visit website
Bug in Arduino compiler.
Electro Tech Online » Arduino
by Pommie
4M ago
I recently had a bug in my program and couldn't figure it out. Turns out I'd typed count==25; instead of count=25; I thought this would be an error or at least a warning. It isn't. As an experiment I placed the following in a new sketch, Code: void setup(){ uint8_t count; count==25; Serial.begin(115200); Serial.println(count); } void loop(){} It compiles fine but count is displayed as 0. Mike. Edit, is this normal compiler behaviour? Just tried it in XC8 with the same result ..read more
Visit website
Encoder to Arduino
Electro Tech Online » Arduino
by dogman
4M ago
I have an Arduino Pro Mini 5V & would like to correctly connect an Incremental encoder to it, part No E6B2-CWZ1X. It has a Line Driver output. Please see datasheet attached. I want to connect Channel A & Channel B only to digital Pins 2 & 3 & use Interrupts to read the encoder disregarding the other wires from the encoder. I was told that I can just connect it directly to the digital pins using 10K pull down resistors. I have tried this & the encoder does work but it appears to falsely... Read more ..read more
Visit website
Relying on ATMEGA328 protection diodes.
Electro Tech Online » Arduino
by Pommie
4M ago
I'm building a data logger using a Nano and an SD holder(5V converters). I need to log two 5V analog voltages and a few(5) 12V digital voltages. For the 12V inputs I'm considering just a series resistor of 10k (or maybe 22k) so the ATMEGA input will see 5.7V and ~0.6mA which exceeds the datasheet value of Vcc+0.5V. I'm assuming that when the chip is powered down that the power LED will hold Vcc at ~2V (assuming back powered) and keep the processor in reset. I'm more... Read more ..read more
Visit website
Trying to convert an IR Torch
Electro Tech Online » Arduino
by johnbergman
6M ago
So I am trying to make an IR blaster/remote for my TV using an IR "Torch" I am having one problem, and that is finding out where to connect the data pin on the circuit shown. Any help would be appreciated ..read more
Visit website
Arduino Code Problem
Electro Tech Online » Arduino
by Pavi98
6M ago
Hello there, I'm a newbie in Arduino, and I tried to make two battery-level indicators to be displayed on an OLED display. Once I uploaded the following Arduino code, it showed two battery level indicators with percentage values. One battery level indicator should only work with the voltage input to the A0 pin, and the other should only work with the A1 pin. the problem is, once I attach either A0 or A1 pin with a voltage level, the expected battery level indicator works fine, but the other... Read more ..read more
Visit website
How to drive 20 RGB LEDs using PWM
Electro Tech Online » Arduino
by Pavi98
7M ago
Hello there, I'm working on a project to control 20 RGB LEDs by using arduino PWM pins. Can you give a proper circuit diagram to power those LEDs? Thank you ..read more
Visit website
Speed controller
Electro Tech Online » Arduino
by Tomtomdrum69
9M ago
Hello Please would someone be kind enough to help me to get my 12v brushless motor to work? I have a 3 phase 12v blush less motor, and a speed controller, along with a CCPM Servo Consistency Master. Is there any way via some form of electronic witchcraft that i might be able to get this motor to power up, full throttle at the push of a button. At the mo, i have to add power to the three Components, with the speed dial on the Consistency Master turned right down, wait for a few audible bleeps... Read more ..read more
Visit website
What to use as EOL?
Electro Tech Online » Arduino
by Pommie
1y ago
I've written an I²C backpack (pic16F18854) for an LCD and a library for the Arduino. All works fine except for EOL. If I use println it sends 0x0d and 0x0a, if I stream it from littleFS then depending on what system it was saved on it might send any combination of the two. Has anyone come up with a solution for this? I'm thinking I might need a flag so if either (or both) are present it goes to a new line. But, this seems messy and not elegant. Thanks, Mike ..read more
Visit website
Low voltage problem with Arduino MKR CAN shield
Electro Tech Online » Arduino
by Diver300
1y ago
I've just found a problem with the Arduino MKR CAN shield, so I'm posting it here so that others can avoid the issue. The problem is that the buck regulator goes unstable when the supply voltage is too low. Up to about 7 V input, the output will peak at near the input voltage. The output feeds the 5 V supply on the CANbus ICs, and it will often be used to feed an Arduino MKR. I've blown a couple of CAN transducers on the shields and a couple of the 3.3 V regulators on the Arduino MKRs, and... Read more ..read more
Visit website

Follow Electro Tech Online » Arduino on FeedSpot

Continue with Google
Continue with Apple
OR