Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pinguino IDE v12
17-01-2017, 10:40 PM,
#1
Pinguino IDE v12
When do we expect to have the Pinguino IDE v12 totally completed to be the most dependable and problem free with all its functions and features just like the IDE of the Arduino Board?
From my point of view,  the IDE is the most vital and important factor for the continuity of the Pinguino as a strong competitive development board.  What do you think guys?
Aldeen19
Reply
18-01-2017, 01:42 AM,
#2
RE: Pinguino IDE v12
(17-01-2017, 10:40 PM)Aldeen19 Wrote: When do we expect to have the Pinguino IDE v12 totally completed to be the most dependable and problem free with all its functions and features just like the IDE of the Arduino Board?
From my point of view,  the IDE is the most vital and important factor for the continuity of the Pinguino as a strong competitive development board.  What do you think guys?

which pinguino chips are you using?
fred
Reply
18-01-2017, 05:58 PM,
#3
RE: Pinguino IDE v12
Hi fred,
Thank you for your question. I am using Pinguino 4550 and trying to use either the function "Tone" or "Sound" to generate pulses with specific frequencies but obviously these two functions are not working.
As a matter of fact I am thinking to turn my Pinguino into a pulse generator with a keyboard and an LCD display but apparently these two functions are not supported by previous IDE versions unlike the Arduino.
What do you think?
Aldeen19
Reply
19-01-2017, 03:23 AM, (This post was last modified: 19-01-2017, 03:32 AM by derf158.)
#4
RE: Pinguino IDE v12
(18-01-2017, 05:58 PM)Aldeen19 Wrote: Hi fred,
Thank you for your question. I am using Pinguino 4550 and trying to use either the function "Tone" or "Sound" to generate pulses with specific frequencies but obviously these two functions are not working.
As a matter of fact I am thinking to turn my Pinguino into a pulse generator with a keyboard and an LCD display but apparently these two functions are not supported by previous IDE versions unlike the Arduino.
What do you think?
 this works in v12  what do you want the lcd to display? lcd is supported by the ide. there is a keypad sketch in the v12 ide
fred
Code:
/*
   Melody
   Plays a melody on a piezo or 8-ohm speaker
   connected on a PWM pin :
   PWM1 or PWM2 for almost all 8-bit boards except for xxj53 boards
   xxj53 boards : PWM1 to PWM7
   PWM0 to PWM4 for almost all 32-bit boards
*/

#define LINEOUT PWM1

// Melody structure
typedef struct
{
   int freq;
   int rest;
} Note;

// Note = frequency, duration
// 4 = quarter note, 8 = eighth note, etc.
Note melody[] = {
   {NOTE_C4, 4},
   {NOTE_G3, 8},
   {NOTE_G3, 8},
   {NOTE_A3, 4},
   {NOTE_G3, 4},
   {0,       4},
   {NOTE_B3, 4},
   {NOTE_C4, 4}};

void setup()
{
   pinMode(USERLED, OUTPUT);
   Audio.init(TAPEQUALITY);
   //Audio.staccato();
   //Audio.legato();
}

void loop()
{
   int thisNote;    
   int pauseBetweenNotes;
   int noteDuration;
   
   digitalWrite(USERLED, HIGH);

   // iterate over the notes of the melody:
   for (thisNote = 0; thisNote < 8; thisNote++)
   {
       // to calculate the note duration, take 1/2 a second
       // divided by the note rest.
       noteDuration = 500 / melody[thisNote].rest;

       Audio.tone(LINEOUT, melody[thisNote].freq, noteDuration);

       // to distinguish the notes, set a minimum time between them.
       // the note's duration + 30% seems to work well:
       pauseBetweenNotes = noteDuration +  noteDuration / 30;
       delay(pauseBetweenNotes);
   }
 
   // stop the tone playing:
   Audio.noTone(LINEOUT);
   digitalWrite(USERLED, LOW);
   delay(1000);
}
Reply
19-01-2017, 03:06 PM,
#5
RE: Pinguino IDE v12
(18-01-2017, 05:58 PM)Aldeen19 Wrote: I am using Pinguino 4550 and trying to use either the function "Tone" or "Sound" to generate pulses with specific frequencies but obviously these two functions are not working.

I've found an old issue in the github tracker TONE NOT WORKING

The issue was closed on March 4 2015 but maybe there are some valuable informations in the conversation.

Oliver
Reply
19-01-2017, 04:34 PM, (This post was last modified: 19-01-2017, 04:35 PM by Aldeen19.)
#6
RE: Pinguino IDE v12
Fred, thank you for your reply.
I have seen this "Melody" example before but it is not working as I am still using IDE rev.999.  
I intend to make an audio signal generator by using my Pinguino 4550, the LCD 16x2 to display the frequency of the output and a decimal keyboard to enter the value of the chosen output signal frequency.
Aldeen19
Reply
19-01-2017, 05:31 PM,
#7
RE: Pinguino IDE v12
(19-01-2017, 03:06 PM)pinguPlus Wrote:
(18-01-2017, 05:58 PM)Aldeen19 Wrote: I am using Pinguino 4550 and trying to use either the function "Tone" or "Sound" to generate pulses with specific frequencies but obviously these two functions are not working.

I've found an old issue in the github tracker TONE NOT WORKING

The issue was closed on March 4 2015 but maybe there are some valuable informations in the conversation.

Oliver

Yes thank you Oliver, I looked at the conversation you referred to and it was really helpful trials by the guys there.
But unfortunately it has been closed without reaching a benefit for an unknown reason.
Aldeen19
Reply
19-01-2017, 07:31 PM,
#8
RE: Pinguino IDE v12
I tried some code of the "Tone" function mentioned by Fred in the conversation referred by Oliver which is as follows:

Code:
void setup()
{
tone(11, 8500, 1000);
}

void loop()
{

tone(11, 3000, 100);
delay(100);
tone(11,4000, 100);
delay(100);
tone(11,5000, 100);
delay(100);
tone(11, 6000, 100);
delay(100);
tone(11,7000, 100);
delay(100);
tone(11,8000, 100);
delay(100);
tone(11,9000, 100);
delay(100);
tone(11,10000, 100);
delay(100);
}
And it was successful but the frequencies produced does not go below 3000 Hz.
I need to go below this limit so what I have to do? Please help.
Aldeen19
Reply
20-01-2017, 02:15 AM,
#9
RE: Pinguino IDE v12
(19-01-2017, 07:31 PM)Aldeen19 Wrote: I tried some code of the "Tone" function mentioned by Fred in the conversation referred by Oliver which is as follows:

Code:
void setup()
{
tone(11, 8500, 1000);
}

void loop()
{

tone(11, 3000, 100);
delay(100);
tone(11,4000, 100);
delay(100);
tone(11,5000, 100);
delay(100);
tone(11, 6000, 100);
delay(100);
tone(11,7000, 100);
delay(100);
tone(11,8000, 100);
delay(100);
tone(11,9000, 100);
delay(100);
tone(11,10000, 100);
delay(100);
}
And it was successful but the frequencies produced does not go below 3000 Hz.
I need to go below this limit so what I have to do? Please help.
Did your sketch above work?
Reply
20-01-2017, 08:38 AM,
#10
RE: Pinguino IDE v12
(19-01-2017, 07:31 PM)Aldeen19 Wrote: but the frequencies produced does not go below 3000 Hz.
I need to go below this limit so what I have to do?

OK, look at this post.
The frequency of tone() depends on the frequency of the system clock. As I understand you have to down-clock your 4550 as this is explained here.

Oliver
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)