nRF51822 development logs 

I have purchased a similar board from ebay to play with:

https://raw.githubusercontent.com/wiki/RIOT-OS/RIOT/images/yunjia-nrf51822-full.jpg popup=true]


The Nordic's PCA10028 devboard has almost the same MCU as mine, but it has double amount of RAM. To compile the examples for this board the linker script needs to be modified:


/* Linker script to configure memory regions. */

SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{
FLASH (rx) : ORIGIN = 0x0, LENGTH = 0x40000
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x4000
}

SECTIONS
{
.fs_data :
{
PROVIDE(__start_fs_data = .);
KEEP(*(.fs_data))
PROVIDE(__stop_fs_data = .);
} > RAM
} INSERT AFTER .data;

INCLUDE "nrf5x_common.ld"

[ hozzászólás ] ( 3 megtekintés ) [ 0 trackbackek ] permalink ( 3.1 / 222 )
Driving an ICF-340-30-2 fan motor with an STM8 

My ex-neighbour came to me with an idea which was built around a HVAC fan motor and it's driver. It was salvaged from an old Toshiba air conditioner. You can find a pretty comprehensive service manual for it here. The motor is a ICF-340-30-2 and the driving board is a MCC-821-03 board.

Of course in it's state it was not able to drive the motor as we wanted so I have cut out the original MCU and replaced with an 1 USD STM8S003F3 board:


The motor driving is simple: there is a drive and a feedback signal. Both are optically isolated by the IC10 and IC11 optocouplers.

Here is the relevant pins of the main MCU (IC30):
- 21: Drive signal
- 22: Feedback signal
- 17: front button
(VCC (+5V) and GND is accessible from a plenty place)


I have successfully managed to get the motor running by generating an 1.6KHz PWM signal to the drive signal. I have not cared about the feedback signal (closed loop is for the puppies :D)
[ hozzászólás ] ( 178 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 228 )
Hack from the past: DIY Nokia DKU-2 cable 

Many years ago, when the Nokia pop-to-port cables were expensive, I have created the following "DKU-2 cable" from an aftermarket headset, some prototyping PCB and an USB B type connector, by melting the pogo like pins to the proper positions:





It was slightly faster with my Nokia 6230 than the Bluetooth, not to mention the iRDA at that time.

Watch out for the carefully impedance controlled USB traces! (Hah, at that time I have had no idea about that fact..)
[ hozzászólás ] ( 285 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 236 )
Adding Cosmic compiler error parser to QtCreator 

I am forced to use Cosmic C compiler for developing STM8. All of the existing IDEs (STVD and Cosmic's own) for STM8 are terrible, so I am using QtCreator for editing code.

To be able to jump easily to the compiler errors/warnings I have created a custom error parser:


I have used the following error parser regexps:


#error\s.*\s(.*):(\d*)\S*\s*(.*)
for errors

And


#warning\s.*\s(.*):(\d*)\S*\s*(.*)

for warnings.
[ hozzászólás ] ( 106 megtekintés ) [ 0 trackbackek ] permalink ( 2.9 / 300 )
[Retro]Coca cola: Legyen egy saját városod karácsonyra 

Rendhagyó bejegyzés a mai, nem valami tech anyázás, hanem egy kis múltbarévedés következik.

[s]Valamikor a kilencvenes évek végén/kétezres évek elején[/s]
1997-karácsonyán (Infóért köszönet Tamásnak!) volt egy karácsonyi Coca-cola promóció amiben az üdítőitalokhoz papírból kitördelhető papírházakat adtak. Az évet még csak megsaccolni sem tudom, az internet egyszerűen nem ismeri az "Legyen egy saját városod karácsonyra coca cola" kifejezést. Édesapám jóvoltából anno az egész kollekció megvolt, de az idők során teljesen elkoptak otthonról az ilyen jellegű karácsonyfadíszek.

A minap egyik rokonnál előkerült a "Panzió" fedőnevű eleme a sorozatnak.





Érdemes megfigyelni az illesztések viharvertségét, illetve az apró gegeket a házikón. Gyerekkoromóta akárhányszor került ilyen a kezembe valahogy mindig olyan érzésem támad, hogy a grafikusoknak sikerült valamit nagyon eltalálniuk.


Update 2019.12.20:
Némi közösségi összefogásnak köszönhetően a házakat digitalizáltuk, és készítettünk belőle egy online galériát:
https://legyenegysajatvarosod.github.io
[ 29 hozzászólás ] ( 694 megtekintés ) [ 0 trackbackek ] permalink ( 2.9 / 258 )

<< <Előző | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | Következő> >>

 
számláló