MangOH with sensor

I am newbie with mangOH. I want to develop an app that gets signal from sensor DS18B20 which uses 1-Wire technology and display to SSD1306 OLED. Is there reference working with 1-Wire library and OLED? Thanks.

I think @davidc may have used 1-wire in a demo he showed at the Sierra Wireless Innovation Summit this year. I think he visits the forum regularly, so hopefully he will show up and comment. I haven’t personally driven any 1-wire hardware from a mangOH board.

Hiya,

The GPIO on the mangOH IoT connector are not fast enough to directly control a Dallas/Maxim 1-wire device. For my demo a couple of years ago I built a prototype IoT card that had a I2C to 1-wire bridge chip on it and wrote some code to read multiple, parasite powered DS18x20 temperature sensors.

I didn’t think there was much interest in the IoT card so I didn’t go any further towards commercialising it.

What interface are you using for the SSD1306 display? I’ve used SPI and GPIOs to drive a black and white Nokia 5110 style display I got from Sparkfun. You could probably bolt this onto the end of one of my IoT breakout cards that are available from Linkwave (http://ecommerce.linkwave.co.uk/iot-connector-i2c-spi-gpio-uart/)

ciao, Dave

Thanks for the reply Dave. Another idea is that it may be possible to bit-bang the 1-wire protocol using the GPIO of the mt7697 chip on the mangOH Red.

What I have is MangOH Green starter kit with a wifi IOT card. If there is no way to have mangoh green work with 1-wire sensor, can I look for I2C sensor connecting to breadboard to work with current kit?
http://www.newark.com/mangoh-io/mangoh-green-starter-kit/mangoh-green-starter-kit/dp/79Y9508

How about getting 1-wire sensor to Arduino then connect to MangOH board, is there special requirement for type of Arduino supported by MangOH Green?

Yes, that should work with no issues. Any 1-wire that works on Arduino will work for mangoh.

Do I need Arduino on mangoh or connect 1-wire sensor directly to breakout card on mangoh?

You need Arduino on mangoh Green.

Specifically, look at sheet 15 of the mangOH Green schematic and you can see which of the ATmega32U4 I/Os are connected to the IOH and IOL header.

Hiya,

You can find tutorial about using the Arduino on the mangOH Green here: https://www.littlesliceofmangoh.com/tutorials/UsingTheArduinoOnTheMangOHGreen-Pt1.html

ciao, Dave

Thanks for the reference link. Does it mean mangoh only supports Arduino Leonardo, not other type? I can get sensor work on Arduino Uno with ESP8266, still wait mangoh on shipment to my site.

If a sensor works on arduino uno, it should work on green

Hiya,

Yes, the hardware on the mangOH green is an Arduino Leonardo (Atmel Mega).

THat said, you should be able to get any of your Arduino code to run on the 'Green as long as you’re NOT using any processor specific options in your code.

ciao, Dave