-
Class 4: Bringing it All Together
09/30/2020 at 12:53 • 0 commentsClass 4 video:
In the final week of this course, we look at an example project which uses the code from the previous weeks to communicate with additional sensors, and display the data on an I2C-enabled character LCD. We also take a look at how important logic analyzers are when working with serial buses. At the end of the video, a short quiz of 9 questions is offered to self-evaluate how much you learned from this course!
Any questions, as always, can be left in the comments on this course page, or asked in the course chatroom. You are also welcome to email me directly. A big thanks to HackadayU for partnering with me for this course!
-
Class 3: 1-Wire
09/30/2020 at 12:51 • 0 commentsClass 3 video:
In this video, we examine 1-Wire from start to finish. It's a very simple protocol, and it shares many features with I2C. We look at the hardware, protocol and software levels in this week's video. We look at an example implementation via bit-banging of GPIO, and communication with a DS2401 Silicon Serial Number. Similarities and differences from I2C are examined. Again, examples are created on the MSP430F5529.
Example code is available at the git repo as well. Adapting this code to other 1-Wire devices should be quite trivial.
-
Class 2: I2C Implementation on MSP430
09/30/2020 at 12:48 • 0 commentsClass 2 video:
In the second week of this course, we dive deep into how microcontrollers implement the I2C protocol. Using the MSP430F5529 as an example, we take a look at how I2C registers are organized, and what procedures you need to go through to get I2C communication working. For this example, we look at the SHT21 temperature and humidity sensor. Code is also provided for the SHT31 in the git repository.
One of the most important skills that I hope you develop is the ability to use and read datasheets. More important than memorizing information is knowing where to look for it. To this end, we look at the real documents used to create the example code, and I explain what to look for in datasheets from other manufacturers.
-
Class 1: Intro to I2C
09/30/2020 at 12:45 • 0 commentsClass 1 video:
For the first week of the course, we look at the basics of I2C. Starting at how it works at the hardware level, and working up through the protocol level, this first class should get you up to speed on how I2C devices are connected together, and how they signal each other.
An understanding of circuit diagrams and how transistors work is helpful, but not necessary. At the end of this video, you'll be ready for the next video. Make sure you have Code Composer Studio installed, and your MSP430F5529 Launchpad ready!
-
Update for SHT31 Users!
09/19/2020 at 21:25 • 0 commentsThe suggested sensor add-on board for this course actually uses a different command set to the SHT21 and SHT11 (my bad, I shouldn't have assumed).
So, there is a new branch on the Git repo called "sht31" that contains example code for use with the SHT31. I don't have an SHT31 handy to test with, so if you find any bugs, feel free to submit pull requests, or just file it as an issue and I will fix it!
Apologies to those who were wondering why the code wasn't working - this is all on me.