New Pidora Package: quick2wire-python-api Sat, Nov 23. 2013
I've packaged the quick2wire python3 library for the Raspberry Pi. This provides easy access to the i2c peripheral bus from Python3; I've packaged this up because I need it, and also to test and demo the package review process for Pidora.
# test_tcn75a :: Test of reading a TCN75A digital
# temperature sensor using I2C
# - TCN75A is powered at 3v3
# - I2C lines connected to Raspi GPIO
# - Pins 5/6/7 are grounded (address = 72)
# - quick2wire Python library
# CTyler 2012-10-03 - GPLv2+
# Using the quick2wire module for I2C access
import quick2wire.i2c as i2c
# Using the time module for sleeping
# Address (unit number) of the TCN75A temperature
# sensor on the I2C bus
address = 72
# Register number within the TCN75A that contains
# the current temperature
temp_register = 0
# Register number within the TCN75A that contains
# the configuration register
conf_register = 1
with i2c.I2CMaster() as bus:
# Configure the resolution (optional step)
# The configuration register is used to set the temperature
# resolution. The higher the resolution, the more
# accurate the temperature reading, but the lower the
# sampling rate. Possible values are 0, 32, 64, and 96.
# Value 96 = 0.01625C steps (highest resolution)
# Value 0 = 0.5C steps (lowest resolution) (default)
i2c.writing_bytes(address, conf_register, 96))
# Loop 100 times
for i in range(1,100):
# Select the address (unit on the bus) and desired
# register, and read 2 bytes
read_temp = bus.transaction(
# The first byte contains the temperature in degrees
# Celsius (actually, this is a signed number, so
# values over 127 are negative, but I'm ignoring
# that here). The second byte contains 256ths of a
# degress, but the default resolution of the sensor
# is 0.5 degrees, so it will always be 0 (.0) or 128 (0.5)
# unless the resolution is changed.
# This line converts the two bytes into a single
# temperature and prints it.
print("Temperature: %3.3f°C" % (read_temp+read_temp/256) )
# Delay half a second before getting next reading
The package is up for review in Pidora (not Fedora, but only because it's not useful on other platforms -- at least at this time). The package review, including links to the specfile and SRPM, is ticket #495.
Come and Speak at FSOSS 2010 Wed, Jul 21. 2010
The 9th Annual Free Software and Open Source Symposium (FSOSS, "eff-sauce") is coming up on October 28th and 29th, here at Seneca College in Toronto. This is a great event with a wide-ranging, eclectic mix of workshops and presentations.
I've been involved in planning FSOSS for the past few years, but stepped back a bit to catch my breath this year. Mary Lynn Manton has stepped up to the task of chairing this year's event with Rose Saliba, who is co-chairing for her third year.
FSOSS is still looking for interesting workshops and presentations on a variety of open source topics. If you're working with open source in any way, this could be a great opportunity -- please check out http://fsoss.ca and submit a presentation proposal right away!
FSOSS Presentation Slate Wed, Oct 21. 2009
The presentation slate for FSOSS 2009 has been finalized, and it looks like a interesting and diverse line-up including such topics as:
- Apache Qpid (AMQP)
- technical writing and documentation
- Mozilla Dehydra and DXR tools
- open source in South Africa's universities
- communication in open source projects
I'm looking forward to a great conference! If you're within driving distance of Toronto, please consider joining us on October 30. Advance registration -- and the corresponding discount -- ends this weekend as the Toronto Open Source Week gets underway.
Early-bird Discounts for FSOSS End Wednesday Mon, Sep 28. 2009
Just a quick reminder: early-bird discounts for the Free Software and Open Source Symposium (FSOSS) end on Wednesday. The discounts are 50% or more, so plan ahead and save! (Seneca students: remember that Volunteers get in for free).
FSOSS 2009 - Call for Presentation Proposals Fri, May 22. 2009
For the eighth year in a row, the Centre for Development of Open Technology at Seneca College is holding the Free Software and Open Source Symposium. This year's event will be on Friday, October 30, with optional hands-on workshops on Thursday, October 29. We're expecting around 300 open source developers, community leaders, business people, and students from Toronto, throughout Ontario, and around the world.
Are you passionate about an open source project? Do you have new insight into open source (or open content, or open formats)? Tell the world: we've put out a call for great presentation proposals on the FSOSS website.
Registration for FSOSS 2009 will open in June... and yes, we pronounce it "eff-sauce"!
TeachingOpenSource.org is Two Weeks Old Wed, Mar 18. 2009
TeachngOpenSource.org has been running for two weeks now. So far we have:
- over 100 posts to the mailing list
- 81 mailing list members
- 51 members of the wiki
- a couple of dozen people who have dropped into the IRC channel #teachingopensource
- an active blog planet
- four projects under discussion on the list, three with some initial wiki content
- plans for a monthly conference call