#garfield Logs

Jul 02 2018

#garfield Calendar

03:49 PM rue_shop3: https://github.com/hwhw/stm32-projects/blob/master/ws2812/ws2812.c
03:53 PM rue_shop4: static void pwm_setup(void) {
03:53 PM rue_shop4: /* Configure GPIOs: OUT=PA7 */
03:53 PM rue_shop4: gpio_set_mode(GPIOA, GPIO_MODE_OUTPUT_50_MHZ,
03:53 PM rue_shop4: GPIO_CNF_OUTPUT_ALTFN_PUSHPULL, GPIO_TIM3_CH2 );
03:53 PM rue_shop4: timer_reset(TIM3);
03:53 PM rue_shop4: timer_set_mode(TIM3, TIM_CR1_CKD_CK_INT, TIM_CR1_CMS_EDGE, TIM_CR1_DIR_UP);
03:53 PM rue_shop4: timer_disable_oc_output(TIM3, TIM_OC2);
03:53 PM rue_shop4: timer_set_oc_mode(TIM3, TIM_OC2, TIM_OCM_PWM1);
03:53 PM rue_shop4: timer_disable_oc_clear(TIM3, TIM_OC2);
03:53 PM rue_shop4: timer_set_oc_value(TIM3, TIM_OC2, 0);
03:53 PM rue_shop4: timer_enable_oc_preload(TIM3, TIM_OC2);
03:53 PM rue_shop4: timer_set_oc_polarity_high(TIM3, TIM_OC2);
03:53 PM rue_shop4: timer_enable_oc_output(TIM3, TIM_OC2);
03:53 PM rue_shop4: timer_set_dma_on_update_event(TIM3);
03:53 PM rue_shop4: timer_enable_irq(TIM3, TIM_DIER_UDE); // in fact, enable DMA on update
03:53 PM rue_shop4: timer_enable_preload(TIM3);
03:53 PM rue_shop4: timer_continuous_mode(TIM3);
03:53 PM rue_shop4: timer_set_period(TIM3, WSP);
03:53 PM rue_shop4: timer_enable_counter(TIM3);
03:53 PM rue_shop4: }
04:35 PM Tom_L: arm?
04:36 PM Tom_L: seems complicated enough to be
04:57 PM rue_shop3: yea, need a 10Mhz clock
04:58 PM rue_shop3: variable to 0.1Hz
04:58 PM rue_shop3: the stm32 is a $1.50 solution
04:58 PM rue_shop3: and it gets me coding for it a bit more, more experience with them
05:01 PM rue_shop3: timer_set_period
06:03 PM rue_shop3: hay tom
06:04 PM rue_shop3: Tom_L, zack would like to know the sheer strength of a #10 grade 3 bolt
06:20 PM Tom_L: https://www.nucor-fastener.com/Files/PDFs/TechDataSheets/TDS_013_Shear_Strength.pdf
06:20 PM Tom_L: mmm those are too big
06:22 PM Tom_L: they all seem to start at 1/4"
06:23 PM Tom_L: https://www.fastenal.com/content/documents/FastenalTechnicalReferenceGuide.pdf
06:23 PM Tom_L: start around P41
06:24 PM Tom_L: grade 3 is practically pot metal though
07:38 PM zhanx: rue_shop3, https://hackaday.com/2018/06/30/reverse-engineering-brains-one-neuron-at-a-time/
07:45 PM rue_shop4: zhanx, TIG, STEEL, DC Electrode negitive?
07:46 PM zhanx: should be
07:46 PM rue_shop4: zhanx, if you zoom in too far, you will miss the point of reverse engineering the system
07:46 PM zhanx: standard is
07:46 PM rue_shop4: ok
07:46 PM zhanx: oh i got that, i figured you would like it
07:49 PM rue_shop4: oh, I got an stm32 to output a pwm signal :)
07:49 PM rue_shop4: next is dialing it up to 10Mhz
07:59 PM zhanx: nice, i hopped in the pool, its in the 90's here
08:05 PM rue_shop3: YEA I can still tig weld!
10:12 PM zhanx: makes one of us