Binary for IoT

Ed Barnard (02.Nov.2018 at 09:00, 3 hr )
Workshop at Madison PHP Conference 2018 (English - US)

Rating: 5 of 5

We've come full circle: A generation ago people were expected to manipulate binary numbers. Those forgotten skills are coming back into demand. The Raspberry Pi, IoT microcontrollers, network code, pure-PHP libraries, all deal with binary-based interfaces or hardware pins. This tutorial focuses on learning the software skills you need for working close to the hardware. We'll "learn binary" and practice this knowledge with two pure PHP projects. We'll first learn and use AND, OR, XOR to build a binary adder implementing Boolean logic gates in PHP. Next we learn shifting, masking, one's complement, two's complement for our second PHP project: Implement your own algorithm converting decimal to hexadecimal without sprintf(). This hands-on tutorial focuses on gaining a strong working knowledge of the skills you need for working close to modern IoT hardware. Zero prior "binary" knowledge is expected.

Who are you?

Claim talk

Talk claims have been moved to the new site.

Please login to the new site to claim your talk

Want to comment on this talk? Log in or create a new account or comment anonymously

Write a comment

Please note: you are not logged in and will be posting anonymously!
= seven minus two


Speaker comment:

02.Nov.2018 at 15:33 by Ed Barnard (80 comments) via Web2 LIVE

For those interested, additional reading:
- My pinned tweet thread is a table of contents for several related essays with photos -
- My related-reading list for a similar talk -
- Find "A Tour of the Worm" article online
- By all means please contact me on twitter for questions, discussion, suggestions

Rating: 4 of 5

03.Nov.2018 at 11:13 by Nick Escobedo (6 comments) via Web2 LIVE

Useful if you want to now how things work and learn some about binary.

Wasn't able to write code last half of the session because we didn't have time.

Gave practical examples of how we can adjust our thinking about math and algorithms.

Rating: 5 of 5

03.Nov.2018 at 13:17 by Magdalena Shemayev (6 comments) via Web2 LIVE

I really enjoyed the whole tutorial. It was really great to have a chance to not only go over the material in-depth, but also to go over *how* to go over material you aren't familiar with in particular. Specifically, I liked seeing the examples and going over all of the "why"s behind everything. The style and class of topic (fundamentals) are both things I would *really* love to see more of in the future.

Rating: 5 of 5

03.Nov.2018 at 17:03 by Robert Collier (4 comments) via Web2 LIVE

this was a fascinating look into both the history and future of our industry, as well as under the hood at how and why things work.

Rating: 4 of 5

05.Nov.2018 at 09:03 by Eric Anderson (9 comments) via Web2 LIVE

The talk was a challenging look into how data is stored and manipulated at the lowest levels of computing. Using higher level languages we forget how data is stored and represented at the binary level and this talk did a good job reminded me of that.

Having never worked with bitwise operators, the initial code challenge was confusing at first. I think other attendees would have been similarly confused as well as working with data in this way is less common.

Overall I really enjoyed the talk, knowing the low level aspects of computing is important.

© 2019