6 Pin BME280 Not giving any I2C Signal [closed] - arduino-esp8266

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 days ago.
Improve this question
I am trying to create a telemetry package for my model rocket I'm building, I'm using the 6 pin BME280, The MPU6050, and a SD card reader/writer. The SD card and MPU work fine, but I can't get the BME to work.
All the code I found online don't read anything, and when I upload I2C checker code, nothing responds. The MPU gives a signal, but not the BME. I would like to get it to work by this March. Please help!

Related

how to force openai to save the context of the whole chat? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 25 days ago.
This post was edited and submitted for review 24 days ago.
Improve this question
How do you maintain historical context in repeat API calls?
i was searching that question but has found 0 answers
so i found this demo chat: https://next-openai-chatgpt.vercel.app/
and its source code: https://github.com/koalamango/next-openai-chatgpt/blob/main/pages/api/chat.ts
it can save context of conversation for real, but can anyboy tell me how?
the only one solution is the send to api all conversation history that must be under 3500 symbols, cuz u need around 500 points to make answer
as example in json format:
{"messages":["user:hello","bot:Hello there!","user:whats your name","bot:My name is Bot. What's yours?","user:now spell your name backwards pls","bot:tob","user:and now capitalise letters","bot:TOB"]}
but in the end you must add "bot:" to suggest AI that he must answer by his role now.
example works very well

How to write linux app/library to interact with Samsung Galaxy Buds headphones? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'd like to write some library/app to interact with Galaxy Buds.
I assume that this would require me to somehow sniff packages it sends to my mobile telephone and get which corresponds to what command(volume/pause/play) and so on. And then write some wrapper for it? I'd like to make this app/library reusable between different Linux distros, and not-that-hard-portable to Mac OS.
Knowing all that I still in the place where I'm not sure where to start from.
I'd appreciate suggestions to any part of this process e.g (Programming language selection, software for BT sniffing ...)
I do have some experience with C#/Java/C++, but I'm willing to learn if these aren't most suitable for solving the issue.
I don't know that much about the libraries needed for such a solution, but as far as sniffing is concerned, I know that Wireshark (WireShark_Bluetooth_Sniffing) is a good starting place.Once you isolate the touch commands, I assume you can map them to media commands, as described here: D-Bus_Media_Commands

Bluetooth Beginner, Need Advice [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
So I'm hopelessly lost right now. I found an attractive bluetooth chip from Nordic Semiconductor (the NRF52840) that I want to use for a couple project ideas I have. Now I have an HC-05 module for my arduino, so I'm not entirely lost on programming a bluetooth module perse, but I really need advice on how I can make my own. I want to make a bluetooth module that works exactly like the HC-05 but on a much smaller scale. I'm talking fitbit small. I'm not making a smartwatch or fitbit, but that's relatively the size I would need it to be.
So bottom line to whoever got lost in that mumbling explanation of my hopelessness, I need some advice on how to develop my own Bluetooth module PCB. The onboard chip will be the aforementioned NRF52480. Thank you to anybody who helps!!
Given that you are endeavoring in a very complex task, I would recommend you to start from the reference designs provided by the chip manufacturer. They are very valuable, especially when dealing with RF.
See here and here, for example. About RF design, this talk may be interesting for you as well.

Vivado HLS_C code [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am trying to write and execute the C code program for data communication. Please can anyone help me in writing the Program for HLS?
Tried in normal C code program like using PRINTF and SCANF statements but it's showing a compilation error.
When you use HLS you are going to "translate" your C code in HLD (VHDL or Verilog for example). Because of this, there are some restrictions: you cannot use "printf", "scanf", malloc and so on. For instance: how can you implement a printf in HLD upon an FPGA?
I recommend reading this tutorial and this user guide.
However, you can use "printf" ONLY in HLS simulation: at the end, you will not synthesize it. Here you can find the link to the discussion about this on Xilinx's forum.
You can update your question and add some more details in order to understand where the errors occur.

UDEV - Run program on USB flash drive insert [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I am trying to get a script to run whenever ANY USB flash drive (not just a specific one) is plugged in to the system and I have been pulling my hair out for about 2 weeks now on and off trying to figure it out. Can anybody help me? (running Ubuntu if that helps).
I need to be able to pass the drive serial number and the devpath (/dev/sd**) at bear minimum.
First you need your rule to detect usb storage devices
/etc/udev/rules.d/10-usbmount.rules:
KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}!="?*", SUBSYSTEMS=="usb", RUN+="/usr/bin/usbdevinserted"
This runs our custom executable shell script /usr/bin/usbdevinserted:
#!/bin/bash
set 2>&1 >> /tmp/usbdevinfo
This sample script dumps the environment variables which you will need to know which device was found, eg:
DEVLINKS='/dev/disk/by-id/usb-Generic_USB_Flash_Disk-0:0 /dev/disk/by-path/pci-0000:00:13.2-usb-0:2:1.0-scsi-0:0:0:0'
DEVNAME=/dev/sdk
DEVPATH=/devices/pci0000:00/0000:00:13.2/usb2/2-2/2-2:1.0/host29/target29:0:0/29:0:0:0/block/sdk
DEVTYPE=disk
ID_BUS=usb
ID_FS_TYPE=
ID_INSTANCE=0:0
ID_MODEL=USB_Flash_Disk
ID_MODEL_ENC='USB\x20Flash\x20Disk\x20\x20'
ID_MODEL_ID=9380
ID_PART_TABLE_TYPE=dos
ID_PART_TABLE_UUID=61d1df0b
ID_PATH=pci-0000:00:13.2-usb-0:2:1.0-scsi-0:0:0:0
ID_PATH_TAG=pci-0000_00_13_2-usb-0_2_1_0-scsi-0_0_0_0
ID_REVISION=7.76
ID_SERIAL=Generic_USB_Flash_Disk-0:0
ID_TYPE=disk
ID_USB_DRIVER=usb-storage
ID_USB_INTERFACES=:080650:
ID_USB_INTERFACE_NUM=00
ID_VENDOR=Generic
ID_VENDOR_ENC='Generic\x20'
ID_VENDOR_ID=058f
MAJOR=8
MINOR=160
SUBSYSTEM=block

Resources