Show Posts
Pages: [1] 2 3 ... 10
1  Using Arduino / Displays / 1.8 TFT adafruit lib problem on: January 10, 2014, 03:47:38 am
I have an 1.8 tft screen.I managedto work with the TFT Library of the Arduino IDE but i wanted to try also the Adafruit lib.I get a compile error and the IDE thinks somehow that it needs the ArduinoRobot lib and inside there i get error of undefinde macros.
This is the first 2 errors i get:

Quote
C:\Program Files\arduino\libraries\Robot_Control\ArduinoRobot.cpp: In constructor 'RobotControl::RobotControl()':
C:\Program Files\arduino\libraries\Robot_Control\ArduinoRobot.cpp:8: error: 'LCD_CS' was not declared in this scope

i have uploaded the graphictest example nothing more
2  Using Arduino / Interfacing w/ Software on the Computer / Arduino Pro Mini problem with arduino IDE on: November 26, 2013, 03:14:52 pm
I have an arduino pro mini that i use to control a led matrix.It was working properly with windows, i tried to use it in debian but the arduino ide does not recognize it.Iuse an ftdi converter that i bought from sparkfun i think.I tried to install ftdi drivers for linux but nothing.Is there somewhere i can search?
3  Using Arduino / Motors, Mechanics, and Power / Re: ArduMoto Shield PWM question on: November 26, 2013, 04:43:47 am
i am not sure i have understood what you say. I use pwm to change the rpm of the dc motor.In every direction i have the same result (both led turn on).Sotty i haven't attached the .sch file. The pins that guide the direction are independent. I only want to make motor go slower when they are close to the stop position.
4  Using Arduino / Motors, Mechanics, and Power / ArduMoto Shield PWM question on: November 25, 2013, 08:31:34 am
I use a pcb that has the schematic that i attached below it is Arduino Motor shield a free and commercial  schematic. I want a general guidance for something i have noticed.I use this arduino motor shield to control 2 DC motors.Whenever i use a duty cycle lower than 100%  both leds that indicate motion in one way are turned on.The motor continues to go the correct way and it stops correctly when it asked.
Is this common for the pcd according to the schematic caused by the PWM?  Or should i try to find the reason in my code?
I am interested in general for an opinion for this i did not gave code or anything cause i want to understand if this is possible for the pcb or it can be a problem.
5  Using Arduino / Displays / Re: liquid crystal i2c lib prob with eclipse on: November 25, 2013, 08:16:29 am
It was an eclipse problem not a library problem.The only thing that was not correct in the library was the pins that are defined for rw ,enable , etc which for these another post in the forum has it correct so i just changed them and it worked before i had to do my last choice which was to open the datasheets of the I2C driver to check the pinout of it and the board's pinout path
6  Using Arduino / Displays / Re: liquid crystal i2c lib prob with eclipse on: November 19, 2013, 10:48:08 am
well i you have any experience with eclipse forum you wouldn't do that question.Well anyway i managed to solve my problem and i am sure that this is not an eclipse problem it was a programming in general problem that had to do with libraries that lcd use in general.
7  Using Arduino / Displays / Re: liquid crystal i2c lib prob with eclipse on: November 19, 2013, 07:52:18 am
well i have a bigger project that have maid in eclipse which is a more complete ide in general.I need to add things to it so i make smaller projects to test new items and then i add them to tha main program.So i want to add an lcd.
8  Using Arduino / Interfacing w/ Software on the Computer / Re: eclipse project problem p[robably with settings on: November 19, 2013, 07:50:26 am
Sorry.Well i can not upload the project,which means that the i get a timeout at the avrdude
9  Using Arduino / Interfacing w/ Software on the Computer / eclipse project problem p[robably with settings on: November 19, 2013, 06:43:09 am
I have an eclipse project that i can not upload to my arduino mega.I use avrdude wiring it is not the first project i make this was a project to test an lcd.I have several other project that i can upload like an i2cscanner ..etc.This lcd project is 8kbyte so it is not too big.I have another that is 44k and it uploads normally.
What can i do? I use mercurial i tried to use another version of the project but i had the same result.I tried to delete .setting file and clean the project but i get the same error.
10  Using Arduino / Displays / Re: liquid crystal i2c lib prob with eclipse on: November 18, 2013, 04:33:45 pm
Well i used fm library with arduino ide and it worked as i have said at the begining.I had to correct the arguments at the constructor.So my problem in Eclipse is located somewhere else.
First my eclipse project where set from the guide of the playground about arduino core library(which is not what you asked) and in every project i copy the extra libraries i want to use that are not included in the arduino core library.These type of libs are Ethernets's ,LiquidCrystal's header and cpps and every lib that i write.So my project in eclipse read what ever i give.

The problem in the fm's library is that it needs lcd.h and i2cio.h.And this is a problem because lcd class is a subclass of Print class(that exist in arduino  core lib).So tho lcd is a sub class it does not implement a the pure virtual function write that Print has(tho it has it's own write function).And my problem is that eclipse understands that LiquidCrystal_I2c lib is a subclass of lcd which is a subclass of Print and it asks me for an implementation of write.Well when i try to implement it and i try to write a function named write the Eclipse says that this overrides the function write that exist in lcd class.But the write function inside lcd does not overrides the pure virtual function of Print.
So the problems are 2:
First: why a function that has the same name the same arguments and the same return type  could not me  recognised as an implementation of the pure virtual  function write that exist in Print(i am talking about the lcd class)
Second: how can i make a function named write to liquidcrystal_I2c lib and make it not to overide the write function that exist in lcd  but the write function that exists in Print
11  Using Arduino / Displays / Re: liquid crystal i2c lib prob with eclipse on: November 18, 2013, 11:23:08 am
there are 2 libraries one that comes from:
https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
that has the problem i have said before and another which i think is older from:
http://hmario.home.xs4all.nl/arduino/LiquidCrystal_I2C/
that says that has no problems but it does not work.It does not need tho lcd.h and i2cio.h but there is a problem communicating with the lcd
12  Using Arduino / Displays / Re: liquid crystal i2c lib prob with eclipse on: November 18, 2013, 10:37:45 am
another print.h  or another piquidCrystali2c lib?  plz give me info.I use the liquidCrystalI2c  version 1.4.2
13  Using Arduino / Displays / liquid crystal i2c lib prob with eclipse on: November 18, 2013, 10:14:18 am
I am trying to use the liquidCrystal i2c and also the standard one in a project.I use Eclipse to write for arduino.

The library works fine at arduino IDE, but when i try to call the constructor on the Eclipse project by writing:

Code:
LiquidCrystal_I2C lcd(0x27);

i get an error that the lcd object has to implement the pure virtual method Print::write.
LiquidCrystal class is a subclass of LCD class and LCD class is a sub of Print.LCD has a write method that does not overide the pure virtual method of Print class and also iboth of them LCD and Print are abstract class cause of write function in Print class and send function in LCD class.

What should i do in order to make this work.I tried to make a function in LiquidCrystal library like this:

Quote
size_t write(uint8_t value);
but this declaration was overiding the function LCD:write and basically was shadowing.This also brings problems to other function inside liquidCrystal lib that call the LCD::write function.
Of course the LCD::write has inside the private pure virtual method send that can not be called outside lcd class.SO i can not implement the liquidCrystal::write as the LCD::write cause i can not call send funtion.

Any help?
14  Using Arduino / Project Guidance / PWM indipendent on: August 30, 2013, 04:09:28 am
I want to send 2 different pwm from 2 different  pins 44 and 45 from an adruino mega.I am monitoring the pwm with a fluke scopemeter. When i give 100% of duty cycle i get normal pwm when i reduce the 1st pwm to 50% everything are normal at 250Hz.When i reduce the second one to 50% also then the first gives 168Hz of duty cycle tho it's value is 127.Are pwm pin outs independent or am i wrong somewhere else.
15  Using Arduino / Motors, Mechanics, and Power / L298N motor driver output voltage on: August 30, 2013, 02:41:57 am
I have a breakout board with  L298N.I am use input voltage at 24Volt. I am trying to move 2 Dc motors simultaneously. I use 100% duty cycle but i do not get 24 for each channel. I get 12Volts. I seems like it divides the voltage.When i go to 50% duty cycle for one of the 2 motors i get 12 and 5Volts and if one of the 2 motors stop and the second runs on 50% duty cycle it get 18Volts.

Do you know if this is normal.Is L298N normally dividing the output voltage if there are 2 motors on the board?Or this should not happen so i have to search for the problem somewhere else.
Pages: [1] 2 3 ... 10