[PYTHON] Make a Kanji display compass with Raspberry Pi and Sense Hat

Make a Kanji display compass with Raspberry Pi and Sense Hat

kanjicompass.png

Overview

About two years ago, I needed to manage the geomagnetism with Raspberry Pi and Sense Hat, so I made this program as a trial.

Right now it only remains in the web emulator, but at that time it worked properly on the actual machine (RPi3 + Sense Hat).

Pi + Sense Hat emulator

https://trinket.io/library/trinkets/a50728f4da

This is a trinket for the RPi emulator. It works as well as the actual machine. It's too wonderful when this is free to use.

Commentary

I haven't done much at all. With Python, the azimuth can be taken suddenly in the library, so depending on the numerical value of the azimuth, this azimuth is decided from how many times to how many times it is displayed.

As for the kanji display, since the liquid crystal display of Sense Hat is 8x8 dots, you only need to create and display an 8x8 JPEG image with dots like kanji.

With other OSs, only the raw values of the accelerometer and magnetic sensor can be obtained, so it is super troublesome to correct the tilt of the terminal from there and calculate the azimuth from the sensor value, but Python is super troublesome. Volunteers from all over the world have prepared a useful library, so it's super easy.

Even if you don't have an actual device, you can enjoy it with just a web emulator, so I recommend it. After all programming is fun if you make something that works.

Recommended Posts

Make a Kanji display compass with Raspberry Pi and Sense Hat
Make a wash-drying timer with a Raspberry Pi
Make a thermometer with Raspberry Pi and make it viewable with a browser Part 4
Make a wireless LAN Ethernet converter and simple router with Raspberry Pi
Make a thermometer with Raspberry Pi and make it visible on the browser Part 3
Create a web surveillance camera with Raspberry Pi and OpenCV
Using a webcam with Raspberry Pi
Let's make a cycle computer with Raspberry Pi Zero (W, WH)
Make a simple CO2 incubator using Raspberry PI and CO2 sensor (MH-Z14A)
Christmas classic (?) Lighting a Christmas tree with Raspberry Pi and Philips Hue
Graph display of household power consumption with 3GPI and Raspberry Pi
Pet monitoring with Rekognition and Raspberry pi
[Raspberry Pi] Add a thermometer and a hygrometer
Build a Tensorflow environment with Raspberry Pi [2020]
Operate an oscilloscope with a Raspberry Pi
Create a car meter with raspberry pi
[Python + PHP] Make a temperature / humidity / barometric pressure monitor with Raspberry Pi
I tried to make a traffic light-like with Raspberry Pi 4 (Python edition)
MQTT RC car with Arduino and Raspberry Pi
Get temperature and humidity with DHT11 and Raspberry Pi
Source compile Apache2.4 + PHP7.4 with Raspberry Pi and build a Web server --2 PHP introduction
Cross-compiling Raspberry Pi and building a remote debugging development environment with VS Code
Source compile Apache2.4 + PHP7.4 with Raspberry Pi and build a Web server ―― 1. Apache introduction
Creating a temperature control system with Raspberry Pi and ESP32 (3) Recipient Python file
[For beginners] I made a motion sensor with Raspberry Pi and notified LINE!
Build a distributed environment with Raspberry PI series (Part 3: Install and configure dnsmasq)
Record temperature and humidity with systemd on Raspberry Pi
Machine learning with Raspberry Pi 4 and Coral USB Accelerator
Easy IoT to start with Raspberry Pi and MESH
GPGPU with Raspberry Pi
Control music playback on a smartphone connected to Raspberry Pi 3 and bluetooth with AVRCP
Build a server on Linux and local network with Raspberry Pi NextCloud and desktop sharing
Display images taken with the Raspberry Pi camera module
Source compile Apache2.4 + PHP7.4 with Raspberry Pi and build a web server --3. Use MySQL
Detect mask wearing status with OpenCV and Raspberry Pi
Let's make a simple game with Python 3 and iPhone
Measure temperature and humidity with Raspberry Pi3 and visualize with Ambient
Ubuntu 20.04 on raspberry pi 4 with OpenCV and use with python
Let's make a Mac app with Tkinter and py2app
Make an umbrella reminder with Raspberry Pi Zero W
DigitalSignage with Raspberry Pi
Getting Started with Yocto Project with Raspberry Pi 4 and WSL2
Troubleshoot with installing OpenCV on Raspberry Pi and capturing
A memorandum when making a surveillance camera with Raspberry Pi
I made a falling block game with Sense HAT
Display USB camera video with Python OpenCV with Raspberry Pi
Make a note of what you want to do in the future with Raspberry Pi
I tried to make a motion detection surveillance camera with OpenCV using a WEB camera with Raspberry Pi
Easy introduction to home hack with Raspberry Pi and discord.py
Python beginner opens and closes interlocking camera with Raspberry Pi
Associate Python Enum with a function and make it Callable
I tried connecting Raspberry Pi and conect + with Web API
Make an air conditioner integrated PC "airpi" with Raspberry Pi 3!
Production of temperature control system with Raspberry Pi and ESP32 (1)
Create a partition and then install the Raspberry Pi OS
I made a resource monitor for Raspberry Pi with a spreadsheet
Measure and compare temperature with Raspberry Pi and automatically generate graph
getrpimodel: Recognize Raspberry Pi model (A, B, B +, B2, B3, etc) with python
Make a 2D RPG with Ren'Py (3) -Items and Tool Shop
I made a surveillance camera with my first Raspberry PI.
Creating a temperature / humidity monitor with Raspberry Pi (pigpio version)