This one-day workshop will provide participants with the basic tools to program and use the RaspberryPi combined with the SenseHat. The workshop will provide a "Hands-On" approach to learning using a single-board computer with physical sensors. We will examine these sensors and learn to collect and manipulate data. The Workshop is aimed at learners of all age, who are interested in detecting and changes in the environment in which the computer is located, and feeding the data into the computer for processing and analysis. The learning style will include interactive workshopping using a computer laboratory as well as lectures. There will be many practical examples. The workshop will run from 08:30 am to 3:00 pm on 2nd, 3rd and 4th July 2019.
The aim of this workshop is to create a collaborative community of young future computational scientists in state-of-the-art numerical methods and computer technology, and their application to various scientific fields.
from sense_hat import SenseHat from time import sleep sense = SenseHat() sense.clear() # no arguments defaults to off
from sense_hat import SenseHat import time sense = SenseHat() file = open("Datafile.csv", "a") file.write("time, temp \n") print ("Time, temp") for n in range(10): temp = sense.get_temperature() temp = round(temp, 2) file.write(time.strftime('%X')) file.write(",") file.write(str(temp)) file.write("\n") print (time.strftime('%X'),temp) time.sleep(1) file.close()