Search found 16 matches

by adouglas
Tue May 11, 2021 5:01 pm
Forum: General Discussion and Questions
Topic: Source code for the pyboard??
Replies: 4
Views: 2526

Re: Source code for the pyboard??

ok, after searching for 45 minutes, the pyb.py file is nowhere to be found. I have to go do something else, this kind of refractory problem is exactly the reason I avoid proprietary stuff, and now here...
by adouglas
Tue May 11, 2021 4:45 pm
Forum: General Discussion and Questions
Topic: Source code for the pyboard??
Replies: 4
Views: 2526

Re: Source code for the pyboard??

ok, the stm32 ports file, it is buried way in there. Man there are a lot of boards. There can't be that many actual proper ports when the main one is still in beta. It was last modified 2 years ago?? That can't be right, unless development has all but halted. Still haven't been able to actually acce...
by adouglas
Tue May 11, 2021 4:40 pm
Forum: General Discussion and Questions
Topic: Source code for the pyboard??
Replies: 4
Views: 2526

Source code for the pyboard??

I am surprised to find that the source code for the pyboard is not anywhere to be found on the downloads page. I want in particular to look at the pyb module to determine what is wrong with the Servo module. The source code should be smack right there. The micropython code is there, but not the spec...
by adouglas
Tue May 11, 2021 4:39 pm
Forum: General Discussion and Questions
Topic: Cannot calibrate servo
Replies: 5
Views: 2859

Re: Cannot calibrate servo

There is no source code for the pyboard available anywhere that I can find?? WTF? It should be right there. I want to look at the source code of the servo object... thanks russ, that library does not work right off the bat on the pyboard as the machine library functions seem to work differently, i d...
by adouglas
Tue May 11, 2021 3:49 am
Forum: General Discussion and Questions
Topic: Cannot calibrate servo
Replies: 5
Views: 2859

Re: Cannot calibrate servo

looks like it is the servo which is part of the problem. It came with a kit for a wifi enabled chip from way back, however apparently it is standard kit in the arduino kits. Coincidence, then that it worked perfectly with arduino. turns out it does not obey the standard for pulse width timing, appar...
by adouglas
Tue May 11, 2021 3:29 am
Forum: General Discussion and Questions
Topic: Cannot calibrate servo
Replies: 5
Views: 2859

Re: Cannot calibrate servo

p.s yeah I came back to the pyboard after leaving, but this is my second exercise, and this is what happens.

Also, in the first exercise there was no way to set the external reference for the adc... again loses points to arduino.
by adouglas
Tue May 11, 2021 3:28 am
Forum: General Discussion and Questions
Topic: Cannot calibrate servo
Replies: 5
Views: 2859

Cannot calibrate servo

I can't get the servo calibration working, it always gives an error message no matter what I do. Partly it is my inexperience, but still. There should be an example code, also I think there is a type which doesn't make things eaiser. a)it doesn't say if the pulse widths are in microseconds or millis...
by adouglas
Mon May 10, 2021 1:40 am
Forum: General Discussion and Questions
Topic: input pin level is reversed somehow??
Replies: 6
Views: 3898

Re: input pin level is reversed somehow??

ok now it works. The other pins I checked also work, X1-4.
by adouglas
Mon May 10, 2021 1:18 am
Forum: General Discussion and Questions
Topic: input pin level is reversed somehow??
Replies: 6
Views: 3898

Re: input pin level is reversed somehow??

I'm back to further explore pyboard, after exploring arduino, grass is always greener I guess. We'll see how it goes. the following code does not work, the pin reads high when unconnected. I'll try it with other pins. import pyb X5 = pyb.Pin('X5', pyb.Pin.IN, pyb.Pin.PULL_DOWN) while True: if (X5.va...
by adouglas
Mon May 10, 2021 1:16 am
Forum: General Discussion and Questions
Topic: Sad farewell to pyboard and micropython, another push is needed to finish things off...
Replies: 10
Views: 8810

Re: Sad farewell to pyboard and micropython, another push is needed to finish things off...

update: after exploring arduino, I have come back to the pyboard. The most rational decision is to use arduino, but I just don't feel like it's as fun. The pyboard will probably work well enough for my purposes and I would rather learn python. I might switch back in a month, depends how it goes.