Hi from austria

Kaffeereibm
Posts: 6
Joined: Fri Dec 08, 2017 7:41 pm

Hi from austria

Post by Kaffeereibm » Fri Dec 08, 2017 7:53 pm

Hello guys!

Was stumbling over this page because of a tiny little sensor...

I'm building currently MQtt clients based on arduino nano and w5100 boards
There i have connected a sensor from bosch, the BME 680, which can do temp, humidity, pressure, and fancy, can do some gas measurement.
So far all good, BUT in order to get the IAQ VALUE calculated, you need to use a closed source lib from bosch...
And this lib is only available for 32bit mcus...
(Iaq is a value for air quality)
Now my question is:

What, if at all, board can I use and what board for ethernet, in a very small form factor, to port my current arduino project
I need a super small setup with WIRED Ethernet (NO wifi) which will go into my wall

Thank you for any advice!!!

User avatar
RogerClark
Posts: 7544
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Hi from austria

Post by RogerClark » Fri Dec 08, 2017 8:17 pm

Welcome

What size is very small?

I suspect if you want “very small”,you would need to make your own PCB.

Also, when you say the lib is for STM32,I presume you mean it is not an Arduino library?

Non Arduino libraries would need to be ported if you wanted to use them with an Arduino core.
If the lib was written using the STM HAL you can use STMs official core, if it’s written with the older Standard Peripheral Library, you could try using Koduino but that only has versions for STM32F3 and F4 devices

Overall it doesn’t sound like moving to STM32 would solve any problems for you

Kaffeereibm
Posts: 6
Joined: Fri Dec 08, 2017 7:41 pm

Re: Hi from austria

Post by Kaffeereibm » Fri Dec 08, 2017 8:21 pm

Small means arduino nano with w5100 board stacked small

This is the lib for the sdnsor:
https://github.com/DFRobot/DFRobot_BME6 ... es/IAQ_I2C

stevestrong
Posts: 1951
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: Hi from austria

Post by stevestrong » Fri Dec 08, 2017 8:33 pm

Willkommen!

What about this mini module: https://www.aliexpress.com/item/Free-sh ... 22020.html
Can be controlled by a plue pill.

Kaffeereibm
Posts: 6
Joined: Fri Dec 08, 2017 7:41 pm

Re: Hi from austria

Post by Kaffeereibm » Fri Dec 08, 2017 9:44 pm

Cool
Can I put this on a blue pill and run regular arduino code on it?
With ethernet?

stevestrong
Posts: 1951
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: Hi from austria

Post by stevestrong » Fri Dec 08, 2017 9:51 pm

I don't know whether you can "put" it on a blue pill, but you can connect to it via SPI and build code with Arduino IDE.
My home server runs since more than a year based on blue pill and a similar (a bit larger) W5500 module.

Kaffeereibm
Posts: 6
Joined: Fri Dec 08, 2017 7:41 pm

Re: Hi from austria

Post by Kaffeereibm » Sat Dec 09, 2017 10:47 am

Ok, now I’m curious:

This is what i would like to do. Could you guys please let me know if possible at all on this platform (since I need around 15-20 of them)?

- MQTT client (pub/sub client from knolleary) on wired ethernet. Either PoE or with the help of a PoE Splitter.
- SPI for Ethernet (W5100/W5500)
- I2C for BME680 and brightness sensor (BH1750)
- I’d like to only have one software for all sensors. mac address is chosen randomly on first power on, (the last three octets) and stored in EEPROM
- IP address DHCP on initial boot
- web interface to configure:
- optional: change DHCP/static (reboot ok)
- MQTT server address
- session identifier for MQTT maybe also hostname if possible
- topics are preconfigured, but should be editable via the web interface
- auth for web interface
- optional: HTTPS for web interface
- optional: TLS for connection to MQTT server

My goal is to build those and configure everything via the web interface. I even think of using the mac for session ident, then, with DHCP I don’t have to touch them at all…they just start to show up on my MQTT server…and if I want to change the session name I can do via web interface

If you could please let me know if theres anything on which can not be done on this platform with a w5100/w5500 ethernet
Because on an atmega 328 this is kind of hard to do...

Thank you!

stevestrong
Posts: 1951
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: Hi from austria

Post by stevestrong » Sat Dec 09, 2017 7:43 pm

Arduino client for MQTT: https://pubsubclient.knolleary.net/
SPI, I2C should work.
Ethernet with configurable MAC and/or DHCP is possible.
Authorization? You have to specify what exactly do you expect. SSL is doable (OpenSSL), https...I do not know.

Search the net for needed feature + Arduino. If found and doable, then is possible to do it on STM32, too.

User avatar
RogerClark
Posts: 7544
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Hi from austria

Post by RogerClark » Sat Dec 09, 2017 8:05 pm

STM32 is probably not the right tool for the job

Try a ESP32 or if you have more space try a Raspberry Pi Zero W

Kaffeereibm
Posts: 6
Joined: Fri Dec 08, 2017 7:41 pm

Re: Hi from austria

Post by Kaffeereibm » Sat Dec 09, 2017 9:23 pm

I'm already doing most of the stuff with a regular arduino nano
Tls and https would have just been nice on top

The , currently only hard reason to move away is the closed source lib from bosch for this sensor...

Thank you guys, I'll order one and see if I'll get it to work

And the pi zero has no ethernet, just wifi...

Post Reply