Search found 62 matches
- Mon Sep 12, 2016 11:44 am
- Forum: Development of MicroPython
- Topic: UNIX-port and GPIO's?
- Replies: 5
- Views: 5212
Re: UNIX-port and GPIO's?
I've done it with non-micro python. Under Linux, you write the ID of the GPIOs to export into /sys/class/gpio/export. In this context, "export" means from kernel-control to control of user processes. Then files appear under /sys/class/gpio/gpioN (where N is the ID) There are a bunch of other pseudo-...
- Sun Sep 11, 2016 10:40 pm
- Forum: MicroPython pyboard
- Topic: Protect pyboard from reading the code
- Replies: 5
- Views: 6889
Re: Protect pyboard from reading the code
If you ship the python modules already compiled, then people won' t be able to access the source.
A Micropython decompiler is probably feasible.
In general, you should not waste time trying to prevent reverse engineering, although it depends what the exact application is (and hence motivation).
A Micropython decompiler is probably feasible.
In general, you should not waste time trying to prevent reverse engineering, although it depends what the exact application is (and hence motivation).
- Sun Sep 11, 2016 10:39 am
- Forum: ESP8266 boards
- Topic: How to get free space of internal file system?
- Replies: 13
- Views: 25694
Re: How to get free space of internal file system?
Obviously this is useful for data-logging applications which use logic like:
* Check free fs space
* If less than some threshold, delete the oldest file
* Write data to new file....
* Check free fs space
* If less than some threshold, delete the oldest file
* Write data to new file....
- Thu Sep 08, 2016 5:35 pm
- Forum: ESP8266 boards
- Topic: Change hostname.
- Replies: 15
- Views: 25723
Re: Change hostname.
The obvious thing to do is to add a new keyword argument to sta.config(... ) - it already has keyword arguments for other parameters. The function is esp_config in modnetwork.c. It's just a matter of adding a new case: in the argument checking and calling that function wifi_station_set_hostname. See...
- Mon Sep 05, 2016 3:54 pm
- Forum: ESP8266 boards
- Topic: How to get free space of internal file system?
- Replies: 13
- Views: 25694
Re: How to get free space of internal file system?
As far as I can tell, you'd need to ask the dos fat filesystem how many clusters it has available, and multiply by cluster size. Micropython doesn't have a function to do this, so you will probably need to add one. I did investigate this briefly. The function f_getfree defined in ff.c seems like it ...
- Sat Sep 03, 2016 10:44 pm
- Forum: ESP8266 boards
- Topic: Servo library
- Replies: 28
- Views: 31478
Re: Servo library
Right, but there is usually another "level of indirection", we don't really want to control the position of the steering wheels or rudder, we actually just want the vehicle pointing the correct way. So if we add a closed-loop controller to control the "next level", then any variations in the behavio...
- Sat Sep 03, 2016 9:06 pm
- Forum: ESP8266 boards
- Topic: Servo library
- Replies: 28
- Views: 31478
Re: Servo library
Clearly the thing to do is use "closed loop" control with servos, so if your robot finds itself driving (flying?) a bit to the right, it steers left, and vice versa. I used continuous rotation servos with a closed loop control based on an IMU gyroscope device, it works really well for keeping a good...
- Sat Sep 03, 2016 12:24 pm
- Forum: ESP8266 boards
- Topic: Sending mails with esp8266 and micropython
- Replies: 11
- Views: 12589
Re: Sending mails with esp8266 and micropython
Ok, I'am a bit confused. How then does your mail client the send messsages to the mail provider? Like I said before - send a HTTP (HTTPS ideally) request to your own server on the public internet. Https won't be blocked and you can control the rate and contents of the message on your server (to pre...
- Sat Sep 03, 2016 12:22 pm
- Forum: ESP8266 boards
- Topic: Servo library
- Replies: 28
- Views: 31478
Re: Servo library
I have connected some micro-servos to the Raspberry Pi's GPIO ports (which also run at 3.3 volts).
3.3V seems just fine for the pulse inputs to the servos which are powered at 5v.
Mark
3.3V seems just fine for the pulse inputs to the servos which are powered at 5v.
Mark
- Fri Sep 02, 2016 3:20 pm
- Forum: ESP8266 boards
- Topic: Sending mails with esp8266 and micropython
- Replies: 11
- Views: 12589
Re: Sending mails with esp8266 and micropython
It is really impressive that you can send TLS mail from a ESP8266, but I'm afraid I don't think it's a useful way to work. You're connecting to tcp port 587 on some mail server - but this connection is likely to be blocked by many people's internet providers (or home routers) - so it won't work for ...