Back to MarkII
Software
Hardware Platform
from SoftOscilloscope import SerialPlot plot = SerialPlot('/dev/ttyUSB0',921600) plot.start()
Direct Serial Console
cat < /dev/ttyS2
cat < /dev/ttyS2 > trap_log.csv
stty -F /dev/ttyS2 -a
screen /dev/ttyS1 1000000
tee </dev/ttyS3 serial-log.txt
GPIO-controlled Amplifier Current Sensors Voltage Sensors Keyboard
GPIO-controlled Amplifier/Speaker, AMP-HB-01
Instance Name |
Chip Pin |
Board Label |
Data Type |
Purpose |
AMP1_A |
PA_10 |
D2 |
DigitalOut |
direction 1 |
AMP1_B |
PB_3 |
D3 |
DigitalOut |
direction 2 |
PWM_OUT |
PD_7 |
D7 |
PwmOut |
PWM out |
Current sensors
Instance Name |
Chip Pin |
Board Label |
Color |
Purpose |
meas_curr[ 0 ] |
PA_0 |
A0 |
Black |
Current Sense 1 |
meas_curr[ 1 ] |
PA_1 |
A1 |
White |
Current Sense 2 |
meas_curr[ 2 ] | PA_4 |
A2 |
Blue |
Current Sense 3 |
Current Sense 4 |
Voltage sensors
Instance Name |
Chip Pin |
Board Label |
Data Type |
Purpose |
PB_0 |
A3 |
Voltage Sense 1 |
Voltage across capacitor storage |
Keyboard, KEY-CHROM-01
Instance Name |
Chip Pin |
Board Label |
Data Type |
Purpose |
||
D8 |
|
|||||
D9 |
||||||
D10 |
||||||
D11 |
Onboard voltage regulator, LD1117
Voltage Sense 2
Voltage Sense 3
Voltage Sense 4
Inputs, Control Voltages
Control Voltage 1
Control Voltage 2
Control Voltage 3
Control Voltage 4
Notes on PWM:
Combined PWM mode allows two edge or cent
er-aligned PWM signals to be generated with
programmable delay and phase shift between re
spective pulses. While the frequency is
determined by the value of the TIMx_ARR regi
ster, the duty cycle and delay are determined
by the two TIMx_CCRx registers. The resulti
ng signals, OCxREFC, are made of an OR or
AND logical combination of two reference PWMs:
Complementary outputs and dead-time insertion
The advanced-control timers (TIM1/TIM8)
can output two complementary signals and
manage the switching-off and the switching-on instants of the outputs.
Asymmetric mode allows two center-aligned PWM signals to be generated with a
programmable phase shift. While the frequency is determined by the value of the
TIMx_ARR register, the duty cycle and the phase-shift are determined by a pair of
TIMx_CCRx register. One register controls the PWM during up-counting, the
second during down counting, so that PWM is adjusted every half PWM cycle:
–
OC1REFC (or OC2REFC) is contro
lled by TIMx_CCR1 and TIMx_CCR2
–
OC3REFC (or OC4REFC) is contro
lled by TIMx_CCR3 and TIMx_CCR4
Control Voltage 1
mbed boot faster
(Current uses clock "MCO" (external, from debugger board?!).
XTAL1 is not populated.
Must add XTAL.
Must change clock code to boot from external xtal.
https://duckduckgo.com/?q=mbed+faster+boot+time
https://developer.mbed.org/forum/helloworld/topic/1222/
mbed
https://developer.mbed.org/handbook/How-mbed-works
https://developer.mbed.org/handbook/mbed-interface
https://developer.mbed.org/handbook/mbed-Compiler
https://developer.mbed.org/questions/
Make mbed boot faster
https://developer.mbed.org/questions/70461/Why-does-this-nucleo-board-lack-a-crysta/
http://stm32f4-discovery.net/2015/01/properly-set-clock-speed-stm32f4xx-devices/
https://developer.mbed.org/search/?q=stm32l476+startup
https://developer.mbed.org/questions/67987/STM32L476-LSE-startup-issues/
https://developer.mbed.org/users/Sissors/code/WakeUp/
mbed CAN bus issue with exporting makefiles
(needed to change clock possibly?)
https://developer.mbed.org/questions/70481/Nucleo-F303K8-ANY-project-fails-to-compi/
https://developer.mbed.org/questions/70477/Latest-mbed-lib-causing-issues-with-Nucl/
https://groups.google.com/forum/#!topic/mbed-devel/3OG2D7iiik0
https://developer.mbed.org/handbook/Getting-Started-mbed-Exporters
https://developer.mbed.org/handbook/Exporting-to-offline-toolchains
https://developer.mbed.org/handbook/Exporting-to-Make
STM32L476 and dev boards
https://www.tindie.com/products/onehorse/dragonfly-stm32l4-development-board/
http://www.emcu.it/STM32L4xx/STM32L4xx.html
http://www.emcu.it/STM32L4xx/STM32L4xx.html#NUCLEO-L476RG
http://www.mouser.com/new/stmicroelectronics/stm-stm32l4-mcu-fpu/
Cortex M4 General
https://github.com/matianfu/arabesque/wiki/STM32F4-Development-Environment-Setup-on-Ubuntu
Original Synthesizer Module .... ( alternate link? )
Main additions to MarkII of this board are:
1. Circuit board layout overhaul
2. Components overhaul
Components Overhaul
40-pin sockets:
http://www.digikey.com/product-detail/en/ED40DT/ED3048-5-ND/4147604
http://www.digikey.com/product-detail/en/A40-LC-TT/AE10008-ND/821762
http://www.digikey.com/product-detail/en/243-40-1-06/1175-1481-ND/3441577
For terminal selection, see: Terminal Block Research
Big changes
Physical
Electronic
Details
update chalkswitch drawing that Ayah made in 2006 :)
Notes:
Using AVR ISP MkII programmer on PC:
http://www.visualmicro.com/post/2014/01/17/AvrIsp-MkII-Usb-Driver-for-Arduino.aspx
avrdude -p m32 -c stk500 -P usb:02:98 -v -v -U lfuse:r:lfusefile.hex:i