Show Posts
|
|
Pages: [1]
|
|
3
|
Community / Exhibition / Gallery / Re: suntracker with actuator
|
on: January 30, 2013, 03:37:32 am
|
Thanks for your interest in the beta sketch As written already in the beta sketch header i use 0018 arduino IDE and ethershield lib is from nuelectronic: // Version: 0.8b Arduino IDE 0018 - based on nuelectronics.com ethershield webserver software http://www.nuelectronics.com/estore/Direct link to the ethershield i use: http://www.nuelectronics.com/estore/index.php?main_page=product_info&cPath=1&products_id=4time.h is a standard library The errors you got from compiling is most ethershield related, so you might have to convert the code to your own ethershield, or get the nuelectronic version of the ethershield. However, i plan to migrate the project to nabduino, or rasperry pi, so this might work better for you. But, you can just remove the code related to the ethershield, and just use the tracker code. The ethershield is just used to visualize what's going on i the tracker. In the v1.0 the solarpanels performance will be logged to by the webserver 
|
|
|
|
|
6
|
Community / Exhibition / Gallery / suntracker with actuator
|
on: January 19, 2013, 09:22:26 am
|
Finally i found the time to made the arduino based suntracker for my old diy solarpanels  I made a model with a gear motor fro polulo to simulate the actuator, use a ethershield from nuelectrictronics, and i found dc motor controller chip in a defect tape deck. In the real life suntracker i have a actuator / polarmount from a scraped from a satellite parabol. In the real life suntracker i will make a suntracker+mppt charger+inverter shield with a mosfet H-bridge. My first version of the suntracker is a beta model, based on a nuelectronic webserver sketch. In the beta version the position counter(interrupt) is not functional. If you can use the first beta suntracker sketch, you can grab sketch here: ** The site is in danish, please use google translate on the site, thanks ** http://techmind.dk/arduino-singleboard/soalrtracker-med-actuator-arduino-version/Latter i might 'migrate' the arduino sketch to the nabduino platform 
|
|
|
|
|
8
|
Using Arduino / Displays / Re: Help to place variable in text_box_P (pstr) in 2.8" TFT Color LCD + touch screen
|
on: February 04, 2012, 04:55:31 am
|
This works Next todo is sample som data and send the sensorData to this batteriesvoltage object void batteriesvoltage() //or void batteriesvoltage(char *sensorData) to incl the measured data { //exampel place qwerty in the drawn RoundRect char i = 22; char sensorData[20] = "qwertyuiopasdfghjkl"; uint8_t row=0;
// draw font tft.ClearScreen(WHITE); tft.DrawRoundRect( 40, 70, 280, 230, 10, MENU_HIGHLIGHT_COLOR,1); font.set_Font(f15x22); font.set_Color(MENU_FONT_COLOR, MENU_NORMAL_COLOR,1); font.set_Cursor( 50, 80); for(i=0; i<23;i++) //loop until al chrs in sensorData is placed on the LCD display { font.putChar(sensorData[i]); //place the sensorData variable, sensorData come from a sensor as voltage sensor, current sensor, temperature sensor if(font.CharWidth(i) !=0) { if( (font.CursorX + font.CharWidth(i)) > 270) { row++; font.set_Cursor(50, 80+ (row* font.Font_Height + 2)); } } } font.set_Font(f12x12); // set font to menu size wait_for_OK(); } I have placed my EVduino-MS-08beta megaDuino code here if anyone can use it for another appl.: http://mynerdstuff.blogspot.com/2012/02/evduino-ms-08beta-code.htmlThe dallas ds18b20 part works well already, so check the demo and grab the code piece here: http://mynerdstuff.blogspot.com/2012/02/dallas-ds18b20-temperature-sensor-and.html
|
|
|
|
|
10
|
Using Arduino / Displays / Re: Help to place variable in text_box_P (pstr) in 2.8" TFT Color LCD + touch screen
|
on: January 30, 2012, 10:47:25 am
|
looks interesting, thanks  tried it this way: char text[6]="qwert"; int voltage = '12'; uint8_t IP = voltage; // integer part uint8_t DP = (voltage - IP)*10; // decimal part sprintf(text, "Voltage: %d.%d", IP, DP); text_box_P( 80, 50, 250, 200, 15, (PSTR(text))); commes with error: fails to determinate size of '___C' EVduino_MS_08b_tft_menu_play.cpp: In function 'void batteriesvoltage()': EVduino_MS_08b_tft_menu_play:373: error: initializer fails to determine size of '__c' 
|
|
|
|
|
11
|
Using Arduino / Displays / Help to place variable in text_box_P (pstr) in 2.8" TFT Color LCD + touch screen
|
on: January 26, 2012, 07:17:43 am
|
Hey, I got this great 2,8" color LCD with touch from nuelectronics, but i can't figure out how to write variables to a text_box_p. In the included lib. it looks like they just use pstr as pointer, but i can't pipe a variabel to the text box. void batteriesvoltage() { char test = '1'; text_box_P( 80, 50, 250, 200, 15, PSTR("Batteri one Voltage:")); // This works text_box_P( 80, 50, 250, 200, 15, (PSTR("Data is: %c", test))); //So, I have tried severel ways to include a variable, but nothing from standard C seams to work, any idees are welcome  wait_for_OK(); } The touch LCD is intend to be used i my Kewet Electric Vehicle as system monitor and datalogger http://mynerdstuff.blogspot.com/2012/01/arduino-based-electric-vehicle.htmlall ideas welcome, thanks  michael
|
|
|
|
|