Search found 43 matches

by mflmartin
Mon Feb 08, 2021 8:29 pm
Forum: General Discussion and Questions
Topic: Bluetooth simple connection & parsing of results
Replies: 14
Views: 741

Re: Bluetooth simple connection & parsing of results

Thanks for the info. I see it now. Another question, I am able to connect but when I request a read on a service, I can't read the value that I get. elif event == _IRQ_GATTC_READ_DONE: # Read completed (no-op). conn_handle, value_handle, status = data print('Class: BLECentral, Function: _irq, Line 1...
by mflmartin
Fri Feb 05, 2021 12:34 am
Forum: General Discussion and Questions
Topic: bluetooth vs ubluetooth
Replies: 2
Views: 156

Re: bluetooth vs ubluetooth

Noted, Thanks!
by mflmartin
Fri Feb 05, 2021 12:33 am
Forum: General Discussion and Questions
Topic: Bluetooth simple connection & parsing of results
Replies: 14
Views: 741

Re: Bluetooth simple connection & parsing of results

Thanks for the insight, Nevertheless, I need to find devices by their name (av_data) or address, that is why I need to parse those bytes to a readable string that I can, then, compare. The reason why, is because I have many devices, each one with an specific name (eg: ZM00001, ZM00002, etc). Thus, I...
by mflmartin
Thu Feb 04, 2021 11:28 pm
Forum: General Discussion and Questions
Topic: Bluetooth simple connection & parsing of results
Replies: 14
Views: 741

Re: Bluetooth simple connection & parsing of results

I found it myself, the simplest solution is to use the ignore flag.

Code: Select all

data.decode('utf-8', 'ignore')
by mflmartin
Thu Feb 04, 2021 10:19 pm
Forum: General Discussion and Questions
Topic: Bluetooth simple connection & parsing of results
Replies: 14
Views: 741

Bluetooth simple connection & parsing of results

Hi! Following the examples, I am able to scan, like for instance taking this example: https://github.com/micropython/micropython/blob/master/examples/bluetooth/ble_simple_central.py But when I want to parse all the addresses or any other data and I get the bytes objects, there is no way to decode th...
by mflmartin
Thu Feb 04, 2021 10:13 pm
Forum: General Discussion and Questions
Topic: bluetooth vs ubluetooth
Replies: 2
Views: 156

bluetooth vs ubluetooth

Hi! I am looking at the latest docs, and they tell me that the module to use, is the ubluetooth. Nevertheless, for the latest image available for the ESP32, that lib does not get recognized. Moreover, only "bluetooth" module works. And the examples in the bluetooth examples use "bluetooth" and not "...
by mflmartin
Mon Jan 02, 2017 11:44 am
Forum: ESP8266 boards
Topic: Servo library
Replies: 28
Views: 20937

Re: Servo library

An easy way might be to use a standard 180 degree servo and gear it up 2:1. The only snag is that at (say) 11.59 the clock's hand would sweep through 354 degrees backwards to get to 12.00. Thanks... But that is not an option, due to the "aesthetics" of the movement. I want seamless analog like move...
by mflmartin
Mon Jan 02, 2017 11:37 am
Forum: ESP8266 boards
Topic: Servo library
Replies: 28
Views: 20937

Re: Servo library

You would use encoders of some kind, but I really don't have much experience with this, so can't recommend anything. At this point you might consider using a stepper motor or even a normal DC motor, as the servos don't really give you much, since you need to do your own PID control loop with your o...
by mflmartin
Mon Jan 02, 2017 10:35 am
Forum: ESP8266 boards
Topic: Servo library
Replies: 28
Views: 20937

Servo library

Thanks! And, from your experience, if I wanted to know the position of a continuous servo motor or dc motor, what would you use? A homing switch with a hall effect magnet for instance? I want to make an analog clock, but I want to be able to know where the handle are (or where their start position i...
by mflmartin
Sun Jan 01, 2017 11:26 pm
Forum: ESP8266 boards
Topic: Servo library
Replies: 28
Views: 20937

Re: Servo library

Hi!

I have 2 questions:

Can you control a 360 degrees servo with this driver?

And, could we control 2 or more servos with an ESP-12 for instance?

Thanks!


Sent from my iPhone using Tapatalk