Search found 58 matches

by BOB63
Sun Sep 27, 2015 4:48 pm
Forum: MicroPython pyboard
Topic: Problems to detect what I receive via serial interface.
Replies: 3
Views: 3353

Re: Problems to detect what I receive via serial interface.

AH !! Another new thing learned ! :D
Thank you so much !
by BOB63
Sun Sep 27, 2015 3:15 pm
Forum: MicroPython pyboard
Topic: Problems to detect what I receive via serial interface.
Replies: 3
Views: 3353

Re: Problems to detect what I receive via serial interface.

... At the end I've understood why was not working. :oops: The data received from serial are not the "character" but the decimal code of ascii characters so if I send the string "connected" il receive this sequence inside the array data_received: 99,111,110,110,101,99,116,101,100 When I ask to print...
by BOB63
Sun Sep 27, 2015 12:05 pm
Forum: MicroPython pyboard
Topic: Problems to detect what I receive via serial interface.
Replies: 3
Views: 3353

Problems to detect what I receive via serial interface.

Hi , I'm in trouble with the data received via serial interface . I wrote a python code to receive some data by serial interface and apparently all work fine , until I try to verify with a simple "if" the string received is what i expect . The code receive data from serial interface and via PuTTy I'...
by BOB63
Sat Aug 22, 2015 9:17 am
Forum: Hardware Projects
Topic: ExtInt not working as expected.
Replies: 7
Views: 7180

Re: ExtInt not working as expected.

Dave,
thank you for the explanation.
I've found a way to manage the callback so to set flags used in the rest of code. As soon as I've completed the project I'll post here.
Thanks again Bob.
by BOB63
Thu Aug 13, 2015 9:14 am
Forum: Hardware Projects
Topic: ExtInt not working as expected.
Replies: 7
Views: 7180

Re: ExtInt not working as expected.

Hi Dave , yes my idea was to have a real interrupt service routine , as I do with the PIC , inside the callback function. Considering that the frequency of LED flashs to be monitored is lower than 1 Hz , I'll try to manage inside the callback just the setting of some flags to be used into the main l...
by BOB63
Wed Aug 12, 2015 10:49 am
Forum: Hardware Projects
Topic: ExtInt not working as expected.
Replies: 7
Views: 7180

Re: ExtInt not working as expected.

Hi, as expected I'm here again .... It was too easy have solved all my doubts :D . I've implemented your suggestion and I got an error referred to the fact that i use the " micropython.alloc_emergency_exception_buf(100)". When I start the program from PuTTY i got this message : AttributeError: 'modu...
by BOB63
Tue Aug 11, 2015 10:44 pm
Forum: Hardware Projects
Topic: ExtInt not working as expected.
Replies: 7
Views: 7180

Re: ExtInt not working as expected.

Dave,
thank you so much for the fast and useful reply. I've a lot to learn before complete my project... :shock:
by BOB63
Tue Aug 11, 2015 8:39 pm
Forum: Hardware Projects
Topic: ExtInt not working as expected.
Replies: 7
Views: 7180

ExtInt not working as expected.

Hi, I'm Bob and I'm newbie of this forum and mPY. I'm working on my first project with mPY with the intention to implemente a datalogger to records during the days , how many times flash a led and for each flash record date , time a incremantal counter. I've already done this project using a PIC , b...