mikrocontroller-net / transistortester Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://www.mikrocontroller.net/articles/AVR_Transistortester
Home Page: https://www.mikrocontroller.net/articles/AVR_Transistortester
I have 1k2 resistors to use in reeplacement of 680 Ohm, and 390 Kohms in reeplacement of 470K
How much is the range of the resistor values that can be used?
Nokla 1110i LCD connected as following:
code compiled with 'WITH_LCD_ST7565 = 8814' and 'LCD_INTERFACE_MODE=3'.
to force the LCD to work finally, void lcd_init() in lcd-routines.c muzz be patched(changes marked with 'Nokla-1110i support' comment):
#elif (LCD_ST_TYPE == 8814)
uint8_t volume;
//Nokla-1110i support
HW_LCD_CE_PORT &=~(1<<HW_LCD_CE_PIN); // CS => 0
HW_LCD_RES_PORT &=~(1<<HW_LCD_RES_PIN); // RST => 0
wait_about10ms(); // wait 5ms or may fail
HW_LCD_RES_PORT|=(1<<HW_LCD_RES_PIN); // RST => 1
lcd_command(0xE2); // CMD_INTERNAL_RESET
wait_about50ms();
//END-OF Nokla-1110i support
volume = eeprom_read_byte(&EE_Volume_Value); // read Vop
lcd_command(CMD_SET_VOP_UPPER | ((volume >> 5) & 0x07)); // set upper Vop
lcd_command(CMD_SET_VOP_LOWER | (volume & 0x1f)); // set lower Vop
lcd_command(CMD_SET_START_LINE | (LCD_ST7565_Y_START & 0x3f)); // Set the Start line 0
lcd_command(CMD_SET_ALLPTS_NORMAL); // 0xa4 set display to normal
//Nokla-1110i support
//lcd_command(CMD_SET_POWER_CONTROL | 4); // 0x28|4 Charge Pump ON
lcd_command(CMD_SET_POWER_CONTROL | 7); // 0x2F !!! Charge Pump ON
lcd_command(CMD_SET_START_LINE | (LCD_ST7565_Y_START & 0x3f)); // 0x40 Set the Start line 0
//END-OF Nokla-1110i support
lcd_command(CMD_SET_COM_REVERSE); // 0xc8
lcd_command(CMD_SET_COM_NORMAL); // 0xc0 set normal Y orientation
lcd_command(0xa1); // set MX, X orientation, is pad selectet!
lcd_command(0xaa); // set horizontal mode
lcd_command(0xac); // set initial row
lcd_command(0x08); // initial row = 8 (0-7)
lcd_clear();
lcd_command(CMD_DISPLAY_ON); // 0xaf Display on
lcd_set_cursor(0,0);
to compile e.g. AutoCheck.c it is necessary to set up a context where "TransistorTester.h" is forcibly-included and MAIN_C macro(from main.c) is defined. otherwise compilation fails and build does not accomplish.
by default, c project is compiled on compilation unit('.c'-file) basis, and linked from compiled objects into executable. so, separate compiling of each compilation unit('.c'-file) is possible.
required header files - e.g. "Transistortester.h" - must be explicitly referenced from compilation units("AutoCheck.c") with "#include" directive. there must be no artificial obstacles preventing compilation of e.g. ("AutoCheck.c") out of another compilation unit - "main.c" context, like "#if defined (MAIN_C) ... #endif" in referenced "Transistortester.h"
Hy i can not open the Doku PDF files, they seem corrupted.
Even an online PDF reader cannot open them
Hello,
Thanks for this cool project!
I recently bought an LCR T4 and was really hopping to be able to upgrade the firmware using an Arduino Nano.
Is this something that's do-able or do I need some other card or even a dedicated usb programmer ?
Many thanks
Project: mega328_color_kit
After enabling flag DWITH_XTAL and setting OP MHZ = 16 and WITH_SamplingADC = 1, compilation fails with error:
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: ../Obj/mega328_color_kit/mega328_color_kit.elf section .text' will not fit in region
text'
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: region `text' overflowed by 1706 bytes
Would You like to tell me it is bug or I do someting wrong?
I am not sure why, but on a new make of 1.46 on GM328A with #define LCD_ST7735, the English ascii charters are shifted one place so I get ...
dpnqpofou uftufs
qspcjoh
instead of..
component tester
probing
make of 1.45 in the same environment works without issues on the same hardware.
Is this something I did wrong? Took me some time to figure out it was shifted and not coms gibberish.
what is the best way to resolve this to not cause other issues?
24x32update_bitmaps.h missing
It necessary for mega328_wei_st7565
How to modify the auto exit waiting time under the menu interface? Now it takes 1400 seconds. It's too long. I didn't find the relevant settings in the source code.
with built-in F-CPU value OP_MHZ can be easily calculated as 'F_CPU / 1000000' and is redundant as a separate setting.
just replace it with F_CPU so user has less headache when configures CPU frequency.
there are configuration subfolders in the /transistortester/software/trunk, e.g. 'mega328_MK-328', 'mega644_LCD2004' and so on, containing 'Makefile', specific for each configuration.
there are lots of configuration settings in the config-specific 'Makefile's, and a short build procedure definition. the most of settings are in form of compiler flags, defining macros.
it's extremely hard to enforce proper code assistance and to build project from sources within IDE(with it's own build procedure).
would be great to have configuration setting inside some header file, like default "avr/io.h" is done. depending on project's 'MCU Type' it includes corresponding IO definition header, e.g. 'avr/iom328p.h' in case of 'ATmega328P' or 'ATmega328'.
this way, 'to build the project user just include e.g. 'config.h', which in case of 'st7565_kit' includes default 'st7565_kit.h', in case of 'GM328' - default 'gm328.h', in case of custom schematics - 'custom.h'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.