Search found 100 matches

by shaoziyang
Mon Jan 16, 2017 1:30 pm
Forum: ESP8266 boards
Topic: Reading Battery Voltage internally
Replies: 3
Views: 29

Re: Reading Battery Voltage internally

mikruth wrote:I am running some ESP's on batteries. Is there any way to read battery voltage like I can in Arduino...

ADC_MODE(ADC_VCC)
ESP.getVcc()

or will I have to read the voltage via a resistor divider on the ADC pin?


ESP8266 has one adc pin, but it can't read internal voltage.
by shaoziyang
Mon Jan 16, 2017 11:09 am
Forum: Other Boards
Topic: My new PYB Nano board is coming
Replies: 19
Views: 2593

Re: My new PYB Nano board is coming

How do I get my hands on one of the PYB Nano boards? Are they for sale yet? I really like the form factor I have put the PYB Nano board at taobao in China, with very low cost price. If you are outside China, express charge will be expensive than board. https://item.taobao.com/item.htm?id=5400634035...
by shaoziyang
Wed Jan 11, 2017 7:43 am
Forum: Other Boards
Topic: new SensorTile firmware, fixed LED problem
Replies: 5
Views: 133

Re: new SensorTile firmware, fixed LED problem

Could you check if changing mp_hal_gpio_clock_enable function in stmhal/mphalport.c like this: #if defined(GPIOG) && defined(__GPIOG_CLK_ENABLE) } else if (gpio == GPIOG) { #if defined(STM32L476xx) || defined(STM32L486xx) // According to AN4555 (Getting started with STM32L4 series hardware ...
by shaoziyang
Wed Jan 11, 2017 2:25 am
Forum: Other Boards
Topic: new SensorTile firmware, fixed LED problem
Replies: 5
Views: 133

Re: new SensorTile firmware, fixed LED problem

I'd recommend that you put together a PR in github. I am not familiar with git, it is too complex. Can you give me some advise? This function: https://github.com/micropython/micropython/blob/master/stmhal/mphalport.c#L85-L132 already has code for enabling the clock. Perhaps it needs to be expanded?...
by shaoziyang
Tue Jan 10, 2017 3:34 pm
Forum: Other Boards
Topic: new SensorTile firmware, fixed LED problem
Replies: 5
Views: 133

new SensorTile firmware, fixed LED problem

By default, micropython doesn't support GPIOG, so LED in SensorTile is not blinky. I modify pin.c and led.c, add GPIOG support. in pin.c, modify fuction pin_obj_init_helper // init(mode, pull=None, af=-1, *, value, alt) STATIC mp_obj_t pin_obj_init_helper(const pin_obj_t *self, mp_uint_t n_args, con...
by shaoziyang
Tue Jan 10, 2017 1:22 am
Forum: Other Boards
Topic: ST SensorTile kit
Replies: 5
Views: 189

Re: ST SensorTile kit

My first guess (as to why the LED isn't working) is that you need to enable the clock for PortG. Yes, it need enable PortG clock, and VddIO2. __HAL_RCC_SYSCFG_CLK_ENABLE(); __HAL_RCC_PWR_CLK_ENABLE(); __HAL_RCC_GPIOG_CLK_ENABLE(); HAL_PWREx_EnableVddIO2();
by shaoziyang
Fri Jan 06, 2017 2:49 pm
Forum: ESP8266 boards
Topic: Does ESP8266 has softuart module
Replies: 8
Views: 930

Re: Does ESP8266 has softuart module

JonHylands wrote:
shaoziyang wrote:I hvae write a soft uart module today, it can works, but it can't receive a lot of continuous data.


I would be interested in this also. I need to connect to a GPS, running at 9600 baud.


please see above, I have only test 1200bps.
by shaoziyang
Fri Jan 06, 2017 2:49 pm
Forum: ESP8266 boards
Topic: Does ESP8266 has softuart module
Replies: 8
Views: 930

Re: Does ESP8266 has softuart module

I hvae write a soft uart module today, it can works, but it can't receive a lot of continuous data. That sounds very interesting. Are you willing to share this code with the community? It is work fine with 1200bps, I have not test it for other baudrate, it maybe need to adjust self.bitdelay value. ...
by shaoziyang
Sat Dec 31, 2016 12:18 pm
Forum: Other Boards
Topic: ST SensorTile kit
Replies: 5
Views: 189

ST SensorTile kit

I have add ST SensorTile kit support to micropython, REPL works fine, but LED (PG12) is not work. I will do more test soon. ST SensorTile kit introduction: http://www.stmicroelectronics.com.cn/content/st_com/zh/products/evaluation-tools/solution-evaluation-tools/sensor-solution-eval-boards/steval-st...
by shaoziyang
Wed Dec 28, 2016 1:11 pm
Forum: The MicroPython pyboard
Topic: Rubber Ducky??
Replies: 1
Views: 112

Re: Rubber Ducky??

Yes, it may use as keynoard.

in boot.py, set
pyb.usb_mode('VCP+HID',hid=pyb.hid_keyboard)

Go to advanced search