Tag: raspberry pi
-
Raspberry Pi on-screen keyboard
Installation of the on-screen keyboard on Raspberry Pi OS: sudo apt install matchbox-keyboard Go to Accessories->Keyboard in the top menu to launch the on-screen software keyboard, or type the following command in a terminal window: matchbox-keyboard Over SSH, we would need to redirect the display: DISPLAY=:0 matchbox-keyboard & Update: The matchbox keyboard is pretty poor…
-
Raspberry Pi to make a Sony-based edge AI development board
Sony has invested in Raspberry Pi for them to make an edge AI development board based on Sony chips: Sony Semiconductor Solutions Corporation (“SSS”) and Raspberry Pi Ltd. (“RPL”) today announced the agreement by SSS to make a strategic investment in RPL. The minority investment cements the relationship between the two companies, to provide a…
-
Python code for Grove I2C accelerometer module in Raspberry Pi OS
Written with ChatGPT: import smbus import time # Define the I2C address of the accelerometer ACCEL_ADDR = 0x4c # Initialize the I2C bus bus = smbus.SMBus(1) # Start measurement bus.write_byte_data(ACCEL_ADDR, 0x07, 0x01) while True: # Read the acceleration values for each axis try: accel_x = bus.read_byte_data(ACCEL_ADDR, 0x00) accel_y = bus.read_byte_data(ACCEL_ADDR, 0x01) accel_z = bus.read_byte_data(ACCEL_ADDR, 0x02)…
-
Enabling PCF85063A RTC on Raspberry Pi 4
Make sure the following two lines are added to /boot/config.txt: dtparam=i2c_arm=on dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi Reboot the board. The RTC should show up in the kernel log: pi@raspberrypi:~ $ dmesg | grep pcf [ 7.155444] rtc-pcf85063 10-0051: registered as rtc0 [ 7.160928] rtc-pcf85063 10-0051: hctosys: unable to read the hardware clock and you can use various hwclock commands.…
-
Build iozone for Raspberry Pi
Download the latest version of iozone @ https://www.iozone.org/src/current Build the code wget https://www.iozone.org/src/current/iozone3_494.tgz tar xvf iozone3_494.tgz cd iozone3_494/src/current make -j4 linux-arm sudo cp iozone /usr/local/bin/ There may be an error pit_server.o: file npit_server.o: file not recognized: file format not recognized collect2: error: ld returned 1 exit status ot recognized: file format not recognized collect2: error:…