Re: 1-wire STM32

2021-06-20 Thread Alan Carvalho de Assis
Hi Ben,

There is an example of 1-Wire for BluePill (stm32f104-minimum) using
the DS18B20 temperature sensor.

All you need to do it:

$ ./tools/configure.sh stm32f103-minimum:sensors
$ make menuconfig
Enable CONFIG_TESTING_SENSORTEST

$ make
Flash the firmware nuttx.bin in your board

Wire the sensor as explained at boards/arm/stm32/stm32f103-minimum/README.txt

It suggests to use a 4k7 resistor, but I used with 10k resistor and
worked fine. Any pull-up resistor from 1k to 10k (maybe even higher)
should work.

You can test this way:

nsh> ls /dev/sensor
/dev/sensor:
 humi0
 temp0
 temp1
nsh> sensortest temp1
SensorTest: Test /dev/sensor/temp1 with interval(100us),
latency(0us)
temp1: timestamp:1823 value:23.25
temp1: timestamp:1903 value:23.19
temp1: timestamp:1981 value:23.19
temp1: timestamp:2059 value:23.19
temp1: timestamp:2137 value:23.19
temp1: timestamp:2215 value:23.19
temp1: timestamp:2293 value:23.19
temp1: timestamp:2371 value:23.13

BR,

Alan

On 6/19/21, disruptivesolution...@gmail.com
 wrote:
> Hello,
>
>
>
> I see some info searching Google about the 1-Wire (through USART)
> implementation for NuttX. It seems there is a driver for it for use through
> U(S)ART.
>
>
>
> Did someone already have implemented STM32 for it? src/stm32_1wire.c (or
> something) how I could initialize this driver?
>
>
>
> I appreciate any help you can provide.
>
> Ben
>
>


Please submit your proposal to the NuttX Online Workshop before July 16

2021-06-20 Thread Alan Carvalho de Assis
Hi NuttXers,

The Nuttx Online Workshop's Call for Presentations is open:

https://nuttx.events/call-for-participation-2021/

If you want to talk about some NuttX features or just want to talk
about some project developed with NuttX or show a demo, that is your
opportunity.

BR,

Alan


Re: Please submit your proposal to the NuttX Online Workshop before July 16

2021-06-20 Thread Disruptive Solutions
I want to bring in MultiWii/MSP for NuttX.

Ben

Op zo 20 jun. 2021 7:36 p.m. schreef Alan Carvalho de Assis <
acas...@gmail.com>:

> Hi NuttXers,
>
> The Nuttx Online Workshop's Call for Presentations is open:
>
> https://nuttx.events/call-for-participation-2021/
>
> If you want to talk about some NuttX features or just want to talk
> about some project developed with NuttX or show a demo, that is your
> opportunity.
>
> BR,
>
> Alan
>