Hello,
I am currently working on the setup of activities around sound and music for kids (ten years old and up). One of the activity is the creation and the building of a synth using a Teensy 3.2, along what Sparkun proposed with their digital handpan. I'd have some questions both from the hardware and software point of view
hardware:
I would like to propose an autonomous setup and remains as simple and low cost as possible. The base is teensy 3.2 + the audio board feeding a PAM8403 amp driving some audio exciters as well as proposing the jack output for use with headphones.
* One the audio board, do the lines-out cut out when the headphone is plugged?
* It seems to me that the simplest way to power the setup is to use the usb socket that becomes standard for usb charge, either with a power bank or directly to the socket (with a phone charger for example). The Teensy would power the PAM, either at 3.3 V on 4Ohms speaker or for extra juice using a 5V step-up on 8 Ohms speaker. This would need around 400 mA for both solution. Would it be possible from the Teensy ? Would a 5V power socket be preferable?
* the handpan use 8 touch pads and have to use the 25,32 and 33 pins to get the necessary input (as well and pin 15, no volume control from the audio board then). These pins are quite fragile, and due to the audio shield, no pin can be solder to ease the handling. Any advice on dealing with these pins? On my prototype I directly sold wires on the pads but I always fear that a connection could be lost.
* I understand the connections between the Teensy and the audio board have to be kept as short as possible and stacking the boards are the best solution but it is then difficult to access pins when mounted on a breadboard for example, and the usb socket and the jack face the same direction, which may be difficult to handle depending on the answer on the power question... How would using the board side by side affect the sound quality?
software:
I am currently putting quite an effort on the software part for a facilitation towards the youngest (and adult not tecchy at all). I base my work on a visual programmation tool named bitbloq (based on Google blockly) which is a nodejs application. I create some dedicated blocks to hide a bit the code complexity, and kind of re done the excellent audio GUI based on node-red but I wanted to have a unique tool (without mentioning the workshops are in French).
The issue is to compile and upload the sketches. Bitbloq is mainly focused on arduino like boards. They developed a nice piece of code based on platformio to build an upload with avrdude... that can not be used for Teensy. I have to developed another solution.
* for compiling I'll use the command line for arduino, as discussed here and here. From my understanding, something like
should do the trick. Is there any gotcha I have to take care of?
* I have to implement this in javascript/nodejs, some any examples would be welcome if they exist.
Overall, there may be a main flaw in the way I am thinking up the whole thing, do not hesitate to bring better ideas!
thanks
I am currently working on the setup of activities around sound and music for kids (ten years old and up). One of the activity is the creation and the building of a synth using a Teensy 3.2, along what Sparkun proposed with their digital handpan. I'd have some questions both from the hardware and software point of view
hardware:
I would like to propose an autonomous setup and remains as simple and low cost as possible. The base is teensy 3.2 + the audio board feeding a PAM8403 amp driving some audio exciters as well as proposing the jack output for use with headphones.
* One the audio board, do the lines-out cut out when the headphone is plugged?
* It seems to me that the simplest way to power the setup is to use the usb socket that becomes standard for usb charge, either with a power bank or directly to the socket (with a phone charger for example). The Teensy would power the PAM, either at 3.3 V on 4Ohms speaker or for extra juice using a 5V step-up on 8 Ohms speaker. This would need around 400 mA for both solution. Would it be possible from the Teensy ? Would a 5V power socket be preferable?
* the handpan use 8 touch pads and have to use the 25,32 and 33 pins to get the necessary input (as well and pin 15, no volume control from the audio board then). These pins are quite fragile, and due to the audio shield, no pin can be solder to ease the handling. Any advice on dealing with these pins? On my prototype I directly sold wires on the pads but I always fear that a connection could be lost.
* I understand the connections between the Teensy and the audio board have to be kept as short as possible and stacking the boards are the best solution but it is then difficult to access pins when mounted on a breadboard for example, and the usb socket and the jack face the same direction, which may be difficult to handle depending on the answer on the power question... How would using the board side by side affect the sound quality?
software:
I am currently putting quite an effort on the software part for a facilitation towards the youngest (and adult not tecchy at all). I base my work on a visual programmation tool named bitbloq (based on Google blockly) which is a nodejs application. I create some dedicated blocks to hide a bit the code complexity, and kind of re done the excellent audio GUI based on node-red but I wanted to have a unique tool (without mentioning the workshops are in French).
The issue is to compile and upload the sketches. Bitbloq is mainly focused on arduino like boards. They developed a nice piece of code based on platformio to build an upload with avrdude... that can not be used for Teensy. I have to developed another solution.
* for compiling I'll use the command line for arduino, as discussed here and here. From my understanding, something like
Code:
arduino_debug --board teensy:avr:teensy31 --verify path/to/sketch.ino
then
teensy_loader_cli --mcu:mk20dx256 or
* I have to implement this in javascript/nodejs, some any examples would be welcome if they exist.
Overall, there may be a main flaw in the way I am thinking up the whole thing, do not hesitate to bring better ideas!
thanks