TheBot: Golang Meetup Jan 11 Talk

13
TheBot ThoughtWorks

description

Talk about TheBot given in Golang Meetup held at Intel, Bangalore. Code repo: https://github.com/thebot/thebot https://github.com/kid0m4n/go-rpi Video shown at the start of the talk: http://www.youtube.com/watch?v=iMXjkZ4B3EM

Transcript of TheBot: Golang Meetup Jan 11 Talk

Page 1: TheBot: Golang Meetup Jan 11 Talk

TheBotThoughtWorks

Page 2: TheBot: Golang Meetup Jan 11 Talk

In memory of...

Be curious. Read widely. Try new things. I think a lot of what people call intelligence boils down to curiosity.

- Aaron Swartz, 1986-2013

Page 3: TheBot: Golang Meetup Jan 11 Talk

Demo Video

Page 4: TheBot: Golang Meetup Jan 11 Talk

Go on RasPi

➢ Concurrency vs Parallelism – Goroutines

➢ Cross Compilation

➢ To develop libraries for RasPi in Golang

➢ To establish a platform for Open Hardware in Go

Page 5: TheBot: Golang Meetup Jan 11 Talk

“Concurrency is about dealing with lots of things at once. Parallelism is about doing lots of things at once”

- Rob Pike

Concurrency in Go

Page 6: TheBot: Golang Meetup Jan 11 Talk

How Go Supports Concurrency

● Concurrent execution (goroutines)

● Synchronization and messaging (channels)

● Multi-way concurrent control (select)

Page 7: TheBot: Golang Meetup Jan 11 Talk

I2C Communication

➢ I2C is advantageous over individual GPIO communication since it uses only 2 wires

➢ Multiple devices are able to communicate with the controller on one bus

Page 8: TheBot: Golang Meetup Jan 11 Talk

ICs interfaced with TheBot

➢ US-020 (Range-finder)

➢ DOF-10 ➔ LSM303 (Gyroscope)

➔ L3GD20 (Accelerator/Magnetic Sensor)

➔ BMP180 (Temperature Sensor)

➢ PCA9685 (PWM Generator)

Page 9: TheBot: Golang Meetup Jan 11 Talk

Schematic

Page 10: TheBot: Golang Meetup Jan 11 Talk

The Future of TheBot!

Page 11: TheBot: Golang Meetup Jan 11 Talk

➢ TheBot sets the tune for Open Source Hardware exploration

➢ Serves as a platform for quick prototyping solutions using a modern language such as Golang

➢ Breaks the myth that hardware projects involve very high budgets

➢ Nurtures the culture of hardware projects in India and the joy of playing with robots

➢ Can be used as an awesome UGV (unmanned ground vehicle) for various applications where it may be inconvenient, dangerous, or impossible to have a human operator

Page 12: TheBot: Golang Meetup Jan 11 Talk

thebot.in