Scaling down a prototype
Posted: Tue Nov 12, 2019 12:03 pm
Hey everyone,
I'm trying to scale down a prototype that is currently running a python script running on raspberry pi and arduino. The python script opens a csv (which is about 150000 lines long with 26 'columns'), stores it in an array and then closes the file. After this file has loaded, the script then uses Google's speech-text API to listen to conversation. Each word spoken is looked up in the array and to find a sequence of numbers that are then sent over serial to tell the arduino to carry out an action. I've tried this with both the Pi3B+ and Pi0W - on the 3B+ the csv takes s few minutes to open, read and store in the array and can then carry this out. The Pi0W usually crashes trying to do this, presumably because of the limited ram.
In its current iteration the prototype is really rather bulky and as the system is (meant to be) wearable I'm not too keen on it staying that size.
So, I've been looking at these: https://store.micropython.org/product/PYBD-SF6-W4F2 which looks promising - will it have the capabilities to do what I need? If not, do you have any suggestions of other things I might try?
Cheers in advance.
I'm trying to scale down a prototype that is currently running a python script running on raspberry pi and arduino. The python script opens a csv (which is about 150000 lines long with 26 'columns'), stores it in an array and then closes the file. After this file has loaded, the script then uses Google's speech-text API to listen to conversation. Each word spoken is looked up in the array and to find a sequence of numbers that are then sent over serial to tell the arduino to carry out an action. I've tried this with both the Pi3B+ and Pi0W - on the 3B+ the csv takes s few minutes to open, read and store in the array and can then carry this out. The Pi0W usually crashes trying to do this, presumably because of the limited ram.
In its current iteration the prototype is really rather bulky and as the system is (meant to be) wearable I'm not too keen on it staying that size.
So, I've been looking at these: https://store.micropython.org/product/PYBD-SF6-W4F2 which looks promising - will it have the capabilities to do what I need? If not, do you have any suggestions of other things I might try?
Cheers in advance.