#Evalboard Sammlung vervollständigt
#STM32F103 #bluepill #stm32
...ja, ich weiß, ich bin sehr spät dran
#stm32 #bluepill #stm32f103 #evalboard
Played around with #ChatGPT, asking it to write #Forth code to implement a hardware delay on a #STM32F103 microcontroller. I wanted to see how it would do with suggesting code in an obscure language I use for teaching so students don't copy and paste existing solutions from the web without engaging with the device manual. ChatGPT produced syntactically correct code that was incomplete but had the 'vibe' of working code and suggested using interrupts. Unfortunately the code called a version of the delay word that I was asking it to write to produce the code, so would never work. But it did describe some of the things you need to do to set registers etc. It wrote the code in a very procedural way. Interestingly, when I asked it to tell me where it got the implementation information from, it provided me with a nonexistent web page, and when I told it the web page didn't exist it apologised and gave me another nonexistent web page, telling me that if I couldn't find it, I could download eforth from a variety of sources. It seems that ChatGPT is coded to try to answer questions, but if it can't, to provide a plausible fabrication. Just like a person, but dangerous in terms of trusting answers. If this technology is generally adopted, which seems likely, it needs to have some means of providing sources for its answers, otherwise it becomes a powerful tool for providing plausible misinformation.
hier ein Vorgeschmack auf mein neuestes Projekt:
"RRC - RemoteRobotCar"
Funktionalität:
- Prozessor #STM32F103 REGELT Räder mit Encodern
- Prozessor #ESP32 kommuniziert mit Handy über Bluetooth
- Handy 3xTasten ForeLeft, ForeAll, ForeRight und 3x Tasten BackLeft, BackAll, BackRight
Das komplette Projekt demnächst wieder zur freien Verfügung...
An Affordable And Programmable PLC https://hackaday.com/2022/12/08/an-affordable-and-programmable-plc/ #ArduinoHacks #ArduinoIDE #STM32F103 #plc
#ArduinoHacks #ArduinoIDE #stm32f103 #plc
An Affordable And Programmable PLC - We’re all used to general purpose microcontroller boards such as the Arduino or it... - https://hackaday.com/2022/12/08/an-affordable-and-programmable-plc/ #arduinohacks #arduinoide #stm32f103 #plc
#plc #stm32f103 #arduinoide #arduinohacks
Spent HOURS trying to program at register level an #stm32f103 board to use the Phase-locked loop at 72 MHz using #mecrisp #forth. It kept crashing because I was resetting the WRONG serial port and when the speed changed, it screwed up the serial port. So simple, but so frustrating. Anyway, now it's faster. Next job is to get the i2c interface working.
#splitkeyboard update: Turns out that the bootloader on the #stm32f103 #bluepill was busted and that's the reason I can't flash the #blackmagicprobe firmware on it through UART... Or at least that's what we think...
#splitkeyboard #stm32f103 #bluepill #blackmagicprobe
Played a bit with mecrisp #forth on a #STM32F103. It's amazing to use a REPL on a device that only costs a few bucks. 1000 pages of documentation is a bit scary though, GPIO access may take some time to get used to.