logo-mobile

ROHM

ROHM
Menu
  • Arduino –
  • Raspberry Pi –
  • Trending –
  • Others –
  • About –
  • Contact –

Raspberry Pi

The Sense HAT Add-On Board For Raspberry Pi – Sense HAT Emulator

Device Plus Editorial Team
Published by Device Plus Editorial Team at July 19, 2017
Categories
  • Raspberry Pi
Tags
  • raspberry pi
  • sense hat
  • sense hat emulator
sense hat emulator
  • Intro & Sense HAT Emulator Browser Version
  • Sense HAT Emulator Desktop Version
  • Source Code for Desktop Sense HAT emulator

 

Sense HAT emulator desktop version

“Desktop Sense HAT emulator” is an emulator used in Raspbian. In addition to Desktop Sense HAT emulator published on official Raspberry Pi blog, a dedicated document page is also released:

Installation – Sense-Emu 1.0 documentation

It’s easy to install with “apt-get” command. After executing the usual “update” command, install the following packages.

 

sudo apt-get update
sudo apt-get install python-sense-emu python3-sense-emu python-sense-emu-doc sense-emu-tools -y

 

Once the installation is complete, you can use it immediately without rebooting.

When I look at the desktop menu…

sense hat emulator

Figure 3

“Sense HAT Emulator” has been added under “Programing”!

Please note that this is not compatible with external operations such as remote desktop connection.

sense hat emulator

Figure 4

Here is the initial screen (Figure 4). The big difference from the web-based emulator is that you can manually set the “Yaw,” “Pitch,” and “Roll”?

Buttons for the joystick are also provided on the desktop emulator.

sense hat emulator

Figure 5

Click the arrow button at the bottom to turn over the Raspberry Pi. The direction of “Yaw,” “Pitch,” and “Roll” is indicated on the screen, which makes it easy to visualize.

Now, let’s test some sample programs!

Select [File] → [Open example] → [Simple] → [humidity.py] from the menu on the upper right.

sense hat emulator

Figure 6

IDLE 3 is started and the sample code is displayed!

Let’s run the program from [Run] → [Run Module] on the menu bar by pressing the [F5] key on the keyboard.

 

 

If you move the “Humidity” bar up and down, the green area of the LED matrix increases or decreases, respectively.

It’s difficult to set the value(s) acquired by the sensor such as temperature, humidity, and atmospheric pressure to an arbitrary value in an actual environment, so this emulator comes in pretty handy.

It’s also great not only for programming but also for debugging stuff.

1 2 3
Device Plus Editorial Team
Device Plus Editorial Team
Device Plus is for everyone who loves electronics and mechatronics.

Check us out on Social Media

  • Facebook
  • Twitter

Recommended Posts

  • The Sense HAT Add-On Board For Raspberry Pi – JoystickThe Sense HAT Add-On Board For Raspberry Pi – Joystick
  • The Sense HAT Add-On Board For Raspberry Pi – Operating The LED DisplayThe Sense HAT Add-On Board For Raspberry Pi – Operating The LED Display
  • Raspberry Pi WebIOPi IOT Part 2 – Making a flashing LED buttonRaspberry Pi WebIOPi IOT Part 2 – Making a flashing LED button
  • The Sense HAT Add-On Board For Raspberry Pi – 6 Types of SensorsThe Sense HAT Add-On Board For Raspberry Pi – 6 Types of Sensors
  • DIY Raspberry Pi Drone Part 3 – FPV Setup GuideDIY Raspberry Pi Drone Part 3 – FPV Setup Guide
  • DIY Raspberry Pi Drone Part 2 – Naza-M Lite GuideDIY Raspberry Pi Drone Part 2 – Naza-M Lite Guide
Receive update on new postsPrivacy Policy

Recommended Tutorials

  • How to integrate an RFID module with Raspberry Pi How to integrate an RFID module with Raspberry Pi
  • How to Use the NRF24l01+ Module with Arduino How to Use the NRF24l01+ Module with Arduino
  • How to Run Arduino Sketches on Raspberry Pi How to Run Arduino Sketches on Raspberry Pi
  • Setting Up Raspberry Pi as a Home Media Server Setting Up Raspberry Pi as a Home Media Server

Recommended Trends

  • SewBot Is Revolutionizing the Clothing Manufacturing Industry SewBot Is Revolutionizing the Clothing Manufacturing Industry
  • All About The Sumo Robot Competition And Technology All About The Sumo Robot Competition And Technology
  • 5 Interesting Tips to Calculating the Forward Kinematics of a Robot 5 Interesting Tips to Calculating the Forward Kinematics of a Robot
  • Go Inside the Drones That Are Changing Food Delivery Go Inside the Drones That Are Changing Food Delivery
Menu
  • Arduino –
    Arduino Beginner’s Guide
  • Raspberry Pi –
    Raspberry Pi Beginner's Guide
  • Trending –
    Updates on New Technologies
  • Others –
    Interviews / Events / Others

Check us out on Social Media

  • Facebook
  • Twitter
  • About
  • Company
  • Privacy Policy
  • Terms of Service
  • Contact
  • Japanese
  • 简体中文
  • 繁體中文
Don’t Forget to Follow Us!
© Copyright 2016-2023. Device Plus - Powered by ROHM
© 2023 Device Plus. All Rights Reserved. Muffin group

istanbul escort istanbul escort istanbul escort