Skip to content

Sg90 servo - #165

Open
taartspi wants to merge 13 commits into
mainfrom
SG90_servo
Open

taartspi wants to merge 13 commits into
mainfrom
SG90_servo

Conversation

@taartspi

@taartspi taartspi commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

New example device SG90 servo motor.

included several modifications to log level of existing files

The pom file is here as this was caught up in problems in the pi4j core snapshots not being available. It is now a copy of what pom is merged. Also, there are commented out lines that existed in the pom for a long time. I will to a separate PR to clean those out.

…e device there. updated mcp472 5 and 8 to log level INFO. Needed so invalid parms details are visible.
…e device there. updated mcp472 5 and 8 to log level INFO. Needed so invalid parms details are visible.

# Conflicts:
#	src/main/java/com/pi4j/devices/sg90/README.md
#	src/main/java/com/pi4j/devices/sg90/SG90_App.java
…e device there. updated mcp472 5 and 8 to log level INFO. Needed so invalid parms details are visible.
…e device there. updated mcp472 5 and 8 to log level INFO. Needed so invalid parms details are visible.
new example device SG90.  Requires new driver build  as I also added the device there.   updated mcp472 5 and 8 to log level INFO. Needed so invalid parms details are visible.
new example device SG90.  Requires new driver build  as I also added the device there.   updated mcp472 5 and 8 to log level INFO. Needed so invalid parms details are visible.
new example device SG90.  Requires new driver build  as I also added the device there.   updated mcp472 5 and 8 to log level INFO. Needed so invalid parms details are visible.
new example device SG90.  Requires new driver build  as I also added the device there.   updated mcp472 5 and 8 to log level INFO. Needed so invalid parms details are visible.

# Conflicts:
#	src/main/java/com/pi4j/devices/sg90/SG90_App.java
… to resolve the errors loading the pi4j core 5.0.0-SNAPSHOT

POM update.  User text change  remove pom raspberrypi
new example device SG90.  Requires new driver build  as I also added the device there.   updated mcp472 5 and 8 to log level INFO. Needed so invalid parms details are visible.
@taartspi

taartspi commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator Author

ready for review. Will not build until the driver PR 183 is merged

stefanhaustein
stefanhaustein previously approved these changes Oct 1, 2026
Comment thread src/main/java/com/pi4j/devices/sg90/README.md
Comment thread src/main/java/com/pi4j/devices/sg90/SG90_App.java Outdated
Comment thread src/main/java/com/pi4j/devices/sg90/SG90_App.java Outdated
Comment thread src/main/java/com/pi4j/devices/sg90/SG90_App.java Outdated
Duplicate what is in the merged code.  This was out an modified trying to resolve the errors loading the pi4j core 5.0.0-SNAPSHOT
POM update.  User text change  remove pom raspberrypi
new example device SG90.  Requires new driver build  as I also added the device there.   updated mcp472 5 and 8 to log level INFO. Needed so invalid parms details are visible.
…e and the Scanner Double methos also retuns a double.

change float to double
Duplicate what is in the merged code.  This was out an modified trying to resolve the errors loading the pi4j core 5.0.0-SNAPSHOT
POM update.  User text change  remove pom raspberrypi
new example device SG90.  Requires new driver build  as I also added the device there.   updated mcp472 5 and 8 to log level INFO. Needed so invalid parms details are visible.

# Conflicts:
#	src/main/java/com/pi4j/devices/sg90/SG90_App.java
Change Double to double.    The Double class parseDouble retuens a double and the Scanner Double methos  also retuns a double.

change float to double
Duplicate what is in the merged code.  This was out an modified trying to resolve the errors loading the pi4j core 5.0.0-SNAPSHOT
POM update.  User text change  remove pom raspberrypi
new example device SG90.  Requires new driver build  as I also added the device there.   updated mcp472 5 and 8 to log level INFO. Needed so invalid parms details are visible.
stefanhaustein
stefanhaustein previously approved these changes Oct 8, 2026
Comment thread src/main/java/com/pi4j/devices/sg90/Sg90App.java
update switch statement

Change Double to double.    The Double class parseDouble retuens a double and the Scanner Double methos  also retuns a double.

change float to double
Duplicate what is in the merged code.  This was out an modified trying to resolve the errors loading the pi4j core 5.0.0-SNAPSHOT
POM update.  User text change  remove pom raspberrypi
new example device SG90.  Requires new driver build  as I also added the device there.   updated mcp472 5 and 8 to log level INFO. Needed so invalid parms details are visible.

# Conflicts:
#	src/main/java/com/pi4j/devices/sg90/README.md
@taartspi

taartspi commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator Author

my push stomped on your latest comment. my idea of a use case is you would start the app and be moving some arm back and forth and want to keep adjusting is. Something like that with the servo that rotates 360 continuously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants