Is it possible to have timing issue with a DS18B20 1-wire temp sensor on ESP32 with arduino? - esp32

i have and ESP32 module that i have a DS18B20 sensor connected to with a 4.7k pullup resistor. the problem is that i get very inconsistent reading a lot of -127 readings in my current program. With WiFi running, Asynch mqtt, websocket etc running on the esp. what i found strange is that when i try the test program, it seems to be pretty consistent, but the test program doesn't start wifi or anything else. Also we have motor VFD near the device and when a motor start, i stop getting readings completely. I have now very confused about all that. Is there anyone that can have any insigth or recommendation about that? I am starting to think maybe a got a fake DS18B20 this is why it is so picky. I have some hundreds of the, and they seems to be all pretty inconsistent ?
Thanx a lot!

Related

Atemega328p built in relay switch on in digitalwrite() but without clicking sound

i already tried using this board and all works fine but suddenly one relay has a dimmer turn on led and the relay doesn't have a clicking sound when turning on. Then one after another all 7 relays has the same problems, i tried changing may atmega chip but nothing happened. I tried using other power supply to power the 7 relay but still the same. The digitalwrite(n, HIGH) output voltage of the atmega pins that are connected to the relays is just about 1.7v and not 5v but the other ouput pins that has nothing connected has 4.89v output when turning it high, would that be the problem? And how would i fix it? My code i use to troubleshoot is just high and low digitalwrite.
Schematic Diagram
atmega328p with built-in 7 relays

Issue with communicating with FONA 3G (aka SIM5320a)

My issue is fairly simple to describe but I have no idea what the problem could be. So I got my FONA 3G and immediately after taking it out of the box, I connected the battery and I wired up my FTDI board (aka USB to serial converter), and then I plugged it into my USB port to try and establish communication. I just tried the most basic at command AT(using PuTTy). You're supposed to get an OK in response but the FONA doesn't appear to even notice that I'm trying to talk to it. I type AT and press enter and nothing happens at all.
The issue is most certainly not my FTDI board, I'm very experienced communicating with wifi modules and other GSM modules using PuTTy. So please don't be concerned with the setup. That's 100 percent definitely not the problem.
I was able to send AT commands after plugging the module into my laptop directly using the module's USB input, but there is still some issue with its UART. I haven't been able to send or receive any communications directly from RX and TX. It wont respond to any programs I load up onto my arduino. Its like the UART is asleep.
If you have experience with FONA 3G, please speak up and tell me what steps you took to get the UART to respond. What should the status indicator look like before its ready to receive commands? Any knowledge you have about the FONA3G module would be helpful.
As a side note, the FONA3G has a chip number. It is SIM5320a. I don't know if that helps. Most people know it as FONA 3G.
All right. Thanks to those of you who posted comments. It turned out to be an issue with the baud rate! Its always the simple stuff. Adafruit said this thing has auto baud meaning you can use any baud rate but they are wrong. It requires 115200 to work properly. Also I'd like to point out that there was nothing wrong with my setup. Sometimes you should trust the person when they say their setup is 100 percent fine.

Problems reading serial data on Windows IOT rasberry pi3

I have an Adafruit Ultimate GPS on a USB serial interface and using the same UWP application can read data just fine on a x86 build on a desktop. When I try a ARM build on the PI3 (remote), everything appears to work, but the serial data read never returns. No timeout, nothing. On the desktop, it starts getting GPS data from the chip right away. I also tried the CustomSerial sample app and am getting the same result. I do have the manifest updated to show serial port access, so don't think that is the problem.
Any ideas would be greatly appreciated. Thanks.
Problem resolved, operator error. Prolific driver not supported, was trying to read data from on-board serial port. Move the GPS sensor to the on-board serial, all is working now. Apologies for the distraction.

Arduino Uno R3 error

I have an arduino uno R3. I am able to upload the programs with no connectivity issues. But there is a problem while executing the program and I don't know what that is. The 13th pin led is not blinking as the default bootloader program comes with preloaded blink program. I am not able to reset the board too. What might be causing the problem?
I even tried to reload the bootloader program. But the same think happens yet again.
Thanks in advance and Regards,
Rishi.
Have you tried to blink one led with pin 2 or 3 ( any of the digital pins ). You might have a working Arduino uno but your led on the board can be broken.
Otherwise,you should try to flash the bootloader with a secondary arduino and check if you get the same issue.

Sasebo GII virtex5 fpga configuration

I am working with Sasebo GII board that has two FPGAs on it:
Xilinx Spartan and Xilinx Virtex5 (and the board has several separate JTAG interfaces for configuration of fpgas).
I am useing ISE 14.4 under Linux and I have some troubles to configure the Virtex 5 FPGA.
(no problems with Spartan).
I am using "Impact" to send the configuration files to FPGAs.
At the beginning Impact scans the board and finds Spartan FPGA without problems
and I can configure it, but when I plug the cable to the other interface and press scan on Impact it says:
"There are many unknown devices being detected. Press Yes to continue or press No to stop."
If I press the NO option, well, obviously nothing happens :-)
And if I click on YES it fails, I can manually add Virtex5 FPGA, but than it fails to upload the config file to it (and even fails when I try to detect the device ID).
I already tried all JTAG interfaces on the board, nothing.
Same operations work on the same board with SPARTAN FPGA, so I'm stuck. Any ideas ?
Well, I am not familiar with that particular board, but there are many things you can look into when it comes to your JTAG problem.
Check the voltage of your VCC, make sure it has a good value for the board
Make sure your ground connection is well connected and you don't have much impedance
between the connector's GND and the boards GND
Try other JTAG connectors and see if you see any difference in the detection of the
devices.
Try to run the IMPACT in debug mode. Capture the data and see if the patterns look OK
Also something that may not be JTAG related, is to make sure your V5 device has all the powers it needs, if there are any power problems, it may cause the JTAG interface to behave like you explained here.
Also, look on the board and see if there are any switches or jumpers to chose different way of configuring the V5 device. This can be a big issues with multi-FPGA board, maybe the V5 is configured to be programmed from a controller or other devices on the board and the JTAG chain is not set up for programming.
These are just different thoughts, they may help you toward the right direction.
Found this on their site:
User guide for the board
To reprogram the flash ROM (ST45DB16D, U11) for the control FPGA (Spartan-3A), attach the configuration
cable to CN7. For configuration, use the provided mcs file sasebo_gii_ctrl.mcs.
Reprogram the flash ROM (ST45DB16D, U4) for the cryptographic FPGA (Virtex-5 LX30) with the provided
mcs file sasebo_aes_comp_lx30.mcs as well. Connect the configuration cable to CN4.
To configure the FPGA immediately after reprog
ramming of the flash ROM, cycle the power.
Blockquote
This means you can't program the FPGA directly, you need to convert your bit file into MCS file and then load it into the FLASH memory on the board.

Resources