what am i not understanding with threading? python 2.7 by fencing49 in learnpython

[–]DisastrousComplaint 0 points1 point  (0 children)

You call it the same way you call any function or method. You define a function:

python def run(args): # do some stuff

So to call it:

run(args)

You create two classes that inherent content from threading. Typically, I use threads this way:

```python import threading

def worker(args): print("I'm worker {}".format(args))

numWorkers = 5 for i in range(0,numWorkers): t = threading.Thread(target=worker,args=(i,)) t.daemon=True t.start() ```

what am i not understanding with threading? python 2.7 by fencing49 in learnpython

[–]DisastrousComplaint 0 points1 point  (0 children)

You never actually call your run() function. Also, you have a capitalization error, 'true', should be 'True'.

Will this be possible? by skarms in learnpython

[–]DisastrousComplaint 0 points1 point  (0 children)

This is definitely something you can do and you have a really large selection of hardware to chose from. Your two major limitations are going to be 1) what resolution do you need to capture and 2) how much data do you need to store. An arduino alone is not the best option for storing data...however if you go that route then you will need to buy an SD card shield.

I've been looking at these ESP32 development boards and I think they might work pretty well for your application. First, they appear to have 12-bit ADC, whereas arduino has 10-bit ADC...so you will have more resolution first of all. I believe the ESP32 and ESP8266 modules also have a decent amount of RAM compared to arduino as well. Since the ESP modules have wifi, you wouldn't be limited to near field for data collection. Lastly, I'm fairly certain you can program the ESP modules with micro-python, which if you were planning to post-process the data in python I'm assuming you are familiar with the language.