Fast Hacks #6 - Laser Spy Microphone
https://www.youtube.com/watch?v=K-96dX8ltO8
./
./
powerful audio editing tool
Audacity is an open-source, cross-platform audio editor that has been a favorite among podcasters, musicians, and content creators for years. Developed by the Audacity Team, this free software provides a robust set of tools for recording, editing, and processing audio. With its wide range of features, support for multiple formats, and plugin compatibility.
To this day, Audacity still remains as one of the most accessible and capable audio editors available even with its age as it supports multiple audio formats, easy to use functionality, and a dedicated community that’s active and
Wedn, 3/19/2025
Built a CIA Spy Device (Laser Mic)
https://www.youtube.com/watch?v=EiVi8AjG4OY
../
Comimark BPW34 Silicon PIN photodiode DIP-2
$6.89
$6
../
https://www.jameco.com/z/SD200-14-21-241-LUNA-Optoelectronics-Photodiode-Sensor-660nm-13ns-90-Degree_2348655.html?CID=GOOG&gad_source=1&gclid=Cj0KCQjw1um-BhDtARIsABjU5x7dv4jkDEN8UJzcZ8tyUFljQdlo-vSSd6_kVkIl8jEppzQuuTHmR5UaAkGMEALw_wcB
../
https://www.electronicsforu.com/technology-trends/learn-electronics/photodiode-working-applications
../ 0202-2025
python write program to send bytes to bluetooth
../
write python program to pronounce "Hello" on bluetooth twice speak
ChatGPT said:
ChatGPT
You can use the pyttsx3 library for text-to-speech and the bluetooth library to send audio to a Bluetooth speaker. Here’s a simple Python program to pronounce "Hello" twice on a Bluetooth speaker:
Install dependencies:
nginx
CopyEdit
pip install pyttsx3
Ensure your Bluetooth speaker is connected:
Pair your Bluetooth speaker with your computer before running the script.
Run the script:
python
CopyEdit
import pyttsx3
import time
def speak_hello():
# Initialize the text-to-speech engine
engine = pyttsx3.init()
# Set properties (voice, speed, etc.)
engine.setProperty('rate', 150) # Speed of speech
engine.setProperty('volume', 1.0) # Volume (0.0 to 1.0)
# Speak "Hello" twice
for _ in range(2):
engine.say("Hello")
engine.runAndWait() # Process the speech command
time.sleep(1) # Pause before the next "Hello"
if __name__ == "__main__":
speak_hello()
This script will use your system’s default audio output, which can be set to a Bluetooth speaker in your system sound settings.
If your system does not automatically use Bluetooth, you may need to manually change the output device.
Would you like additional features, like playing a notification sound before speaking? 🚀
4o
end***/
bluetooth.BluetoothSocket(bluetooth.RFCOMM): Creates a Bluetooth socket using RFCOMM protocol.
sock.connect((address, port)): Connects to the Bluetooth device with the specified address and port.
sock.send(data): Sends the byte data to the connected Bluetooth device.
sock.close(): Closes the connection once the data is sent.
Replace 'XX:XX:XX:XX:XX:XX' with the MAC address of the Bluetooth device you want to communicate with.
The default Bluetooth RFCOMM port is usually 1, but check your device for the correct port if it differs.
If you're communicating with a Bluetooth device over Bluetooth Low Energy (BLE), the process would be slightly different. Let me know if you need more info!
../
To send bytes over Bluetooth using Python, you can use the PyBluez library, which is a Python module for Bluetooth communication. This example will help you send bytes to a Bluetooth device. Make sure you have PyBluez installed first. You can install it using:
bash
Copy
pip install pybluez
Here’s a basic example to send bytes to a Bluetooth device:
Program: HM_BlueTooth-020225
../
import bluetooth
def send_bytes_to_bluetooth(address, port, data):
# Create a Bluetooth socket
sock = bluetooth.BluetoothSocket(bluetooth.RFCOMM)
try:
# Connect to the Bluetooth device at the specified address and port
sock.connect((address, port))
print(f"Connected to {address} on port {port}")
# Send the bytes data
sock.send(data)
print(f"Sent data: {data}")
except bluetooth.BluetoothError as e:
print(f"Bluetooth error: {e}")
finally:
# Close the Bluetooth socket
sock.close()
print("Connection closed")
# Example usage:
# Replace with your Bluetooth device's MAC address and port
bluetooth_address = 'XX:XX:XX:XX:XX:XX' # Device's Bluetooth MAC address
port = 1 # Typically RFCOMM port 1, adjust if needed
# Example data to send (bytes)
data_to_send = bytes([0x01, 0x02, 0x03, 0x04]) # Replace with your data
send_bytes_to_bluetooth(bluetooth_address, port, data_to_send)
../
\
../
1/15/25
GY-31 TCS3200 Color Sensor Recognition Module for Arduino, Fiberglass PCB, Blue, Room Electrical Hardwiring, Operating Voltage ≤36V
../
Color (RGB) detector using CircuitPython on Raspberry Pi Pico
https://www.youtube.com/watch?v=TU_OZdsyLeE
Color (RGB) detector using CircuitPython on Raspberry Pi Pico
https://www.cytron.io/tutorial/color-rgb-detector-using-circuitpython-on-raspberry-pi-pico
../
https://www.youtube.com/watch?v=Y3ZJs27d_c0
.//
User manual(PDF)
View
Product details
Save
Report this item
Power Mode: Room electrical/hard wiring
Operating Voltage: ≤36V
Battery Properties: Without Battery
See more
Store Information
Learn about dimensions
Operating voltage range is 3-5V. Immune to light interference. Equipped with a white LED that can be toggled on and off. Capable of detecting the color of objects that do not emit light.
gy 31 tcs3200 color sensor recognition module for fiberglass pcb electrical operating voltage 36v details 0gy 31 tcs3200 color sensor recognition module for fiberglass pcb electrical operating voltage 36v details 0
GY-31 TCS3200 Color Sensor Recognition Module for Arduino, Fiberglass PCB, Blue, Room Electrical Hardwiring, Operating Voltage ≤36V
../
https://theorycircuit.com/arduino-projects/color-sensor-tcs3200-arduino-interfacing/
https://theorycircuit.com/arduino-projects/color-sensor-tcs3200-arduino-interfacing/
../
../
../
../
../
#define S0 4
#define S1 5
#define S2 6
#define S3 7
#define sensorOut 8
int frequency = 0;
void setup() {
pinMode(S0, OUTPUT);
pinMode(S1, OUTPUT);
pinMode(S2, OUTPUT);
pinMode(S3, OUTPUT);
pinMode(sensorOut, INPUT);
digitalWrite(S0,HIGH);
digitalWrite(S1,LOW);
Serial.begin(9600);
}
void loop() {
digitalWrite(S2,LOW);
digitalWrite(S3,LOW);
frequency = pulseIn(sensorOut, LOW);
Serial.print("R= ");
Serial.print(frequency);
Serial.print(" ");
delay(100);
digitalWrite(S2,HIGH);
digitalWrite(S3,HIGH);
frequency = pulseIn(sensorOut, LOW);
Serial.print("G= ");
Serial.print(frequency);
Serial.print(" ");
delay(100);
digitalWrite(S2,LOW);
digitalWrite(S3,HIGH);
frequency = pulseIn(sensorOut, LOW);
Serial.print("B= ");
Serial.print(frequency);
Serial.println(" ");
delay(100);
}
../
I2C 1602 Serial LCD for Arduino & RPI
https://www.cytron.io/p-i2c-1602-serial-lcd-for-arduino-and-rpi
Everyone loves the 1602-character LCD, it is cheap and works out of the box! But the need for 6 to 10 GPIOs is the pain :) It takes most of the GPIO of Arduino and other microcontrollers. Now with this I2C or Two wires interface LCD, you will save a lot of GPIO for your sensor and motor control.
This is a great blue backlight LCD display. As the pin resources of the Arduino controller are limited, your project may not be able to use a normal LCD shield after being connected with a certain quantity of sensors or SD cards. However, with this I2C interface LCD module, you can realize data display via only 2 wires. If you already have I2C devices in your project, you can still program this LCD with the correct I2C address. It is fantastic for Arduino-based projects.
Note: If the display is not clear (or blank), try to adjust the contrast level by tuning the onboard potentiometer.
../
../
1/3/2025
M.2 2230 NVMe SSD
M.2 NVMe SSD M keys in size 2230 2242 2280
ELUTENG NVMe Base for Raspberry Pi 5 Hat M.2 NVMe to PCIe Adapter Raspberry Pi 5 M.2 PCIe Adapter 2230 2242 2280 SSD Expansion Board M Key Hard Drive PCIe NVMe Adapter for Raspberry Pi 5
Ppython dic
message = {"sr":{"posx":0.200,"vel":4.82,"stat":5}}
print(type(message))
print(message['sr']['posx'])
https://www.programiz.com/python-programming/nested-dictionary
https://www.geeksforgeeks.org/python-convert-json-to-string/
https://www.w3schools.com/python/python_ref_string.asp