Show Posts
Pages: [1]
1  Using Arduino / Microcontrollers / Which timer for which PWM pin on Arduino Mega? on: October 08, 2012, 04:24:03 pm
Hello,

I would need to generate PWM signals on a Arduino Mega at a higher frequency than the default used for the analog write function. I therefore need to change the prescaler of the concerned timer. However, I wasn't able to find documentation of which PWM pin is linked to which timer in the case of the Arduino mega. Can someone help me here or give me a link to the relevant information?

Thank you in advance,

Sam
2  Using Arduino / Networking, Protocols, and Devices / Re: 3G GPRS shield and DynDns update ip on: October 07, 2012, 07:03:17 pm
Hi antkan,

It probably depends from your provider. For example, it doesn't work with mine, because it seems that there is a routing stage between the outside world and me. In other words several mobile users share the same ip address, similarly to what happens in a home with a router linking a home network with the outside. But the difference is that when you have a router at home, you can set forwarding rules to say that all incoming traffic on, say, port 80 gets directed to this particular computer (your webserver). However you cannot do that for your mobile terminal, because you don't have access to the router.

It might depend from provider to provider. At least for my provider, mobile user cannot be directly accessed from the outside.

Sam
3  Using Arduino / Programming Questions / Re: Question about LiquidCrystal library on: October 21, 2011, 02:50:17 am
Ah thanks,
So it appears that the LCD library needs the timing functions. As you say, I can modify every calls to delay() etc. with some waiting loops. I will try this...
4  Using Arduino / Programming Questions / Question about LiquidCrystal library on: October 20, 2011, 09:16:49 am
Hello,

I am writing a program that uses timer1 in combination with interrupts to generate a square wave at a user-settable frequency.
I had to disable timer0 because the interrupts used by the millis() micros() etc. functions were interfering with my signal generation on timer1 (sometimes, a timer overflow was not caught by the interrupt routine, and pulses were missed. I guess that the arduino's timing functions make use of cli()...). Now that I disabled timer0, everything is working fine and I do need these timing functions for my program anyway.

However, I now would like to add a LCD display and use the LiquidCrystal library. I wasn't able to find information to know whether this library requires the timing functions based on timer0.

In short, if I disable timer0, can I use the LiquidCrystal library?

Thank you in advance for your help.

Pages: [1]